- fix many compiler warnings

This commit is contained in:
2025-08-21 11:04:56 +03:00
parent 6b6f4147db
commit 178ebac88a
26 changed files with 74 additions and 79 deletions

View File

@@ -60,7 +60,7 @@ NullInputDevice::NullInputDevice()
NullInputDevice::~NullInputDevice()
{
close();
internalClose();
}
bool NullInputDevice::open()
@@ -73,7 +73,7 @@ bool NullInputDevice::open()
return true;
}
void NullInputDevice::close()
void NullInputDevice::internalClose()
{
mTimer.reset();
if (mBuffer)
@@ -84,6 +84,10 @@ void NullInputDevice::close()
ICELogInfo(<<"Pseudocaptured " << mTimeCounter << " milliseconds , " << mDataCounter << " bytes.");
}
void NullInputDevice::close()
{
internalClose();
}
Format NullInputDevice::getFormat()
{
assert (Format().sizeFromTime(AUDIO_MIC_BUFFER_LENGTH) == AUDIO_MIC_BUFFER_SIZE);
@@ -106,7 +110,7 @@ NullOutputDevice::NullOutputDevice()
NullOutputDevice::~NullOutputDevice()
{
close();
internalClose();
}
@@ -119,13 +123,18 @@ bool NullOutputDevice::open()
return true;
}
void NullOutputDevice::close()
void NullOutputDevice::internalClose()
{
mTimer.reset();
free(mBuffer); mBuffer = nullptr;
ICELogInfo(<< "Pseudoplayed " << mTimeCounter << " milliseconds, " << mDataCounter << " bytes.");
}
void NullOutputDevice::close()
{
internalClose();
}
Format NullOutputDevice::getFormat()
{
assert (Format().sizeFromTime(AUDIO_SPK_BUFFER_LENGTH) == AUDIO_SPK_BUFFER_SIZE);