- better information about decoding results

This commit is contained in:
2022-11-03 17:32:44 +03:00
parent 83dd8f88b7
commit 5bbdec8452
3 changed files with 30 additions and 18 deletions

View File

@@ -34,8 +34,10 @@ void SingleAudioStream::process(const std::shared_ptr<jrtplib::RTPPacket>& packe
void SingleAudioStream::copyPcmTo(Audio::DataWindow& output, int needed)
{
while (output.filled() < needed)
if (!mReceiver.getAudio(output))
{
if (mReceiver.getAudio(output) != AudioReceiver::DecodeResult_Ok)
break;
}
if (output.filled() < needed)
ICELogError(<< "Not enough data for speaker's mixer");