mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 14:03:55 +02:00
add some debug for stream overflows in audio-mixer
This commit is contained in:
parent
ced5596e82
commit
7430b12db6
1 changed files with 13 additions and 1 deletions
|
@ -65,6 +65,8 @@ int AudioMixerClientData::parseData(ReceivedMessage& message) {
|
|||
} else {
|
||||
PositionalAudioStream* matchingStream = NULL;
|
||||
|
||||
bool isMicStream = false;
|
||||
|
||||
if (packetType == PacketType::MicrophoneAudioWithEcho
|
||||
|| packetType == PacketType::MicrophoneAudioNoEcho
|
||||
|| packetType == PacketType::SilentAudioFrame) {
|
||||
|
@ -85,6 +87,8 @@ int AudioMixerClientData::parseData(ReceivedMessage& message) {
|
|||
} else {
|
||||
matchingStream = _audioStreams.value(nullUUID);
|
||||
}
|
||||
|
||||
isMicStream = true;
|
||||
} else if (packetType == PacketType::InjectAudio) {
|
||||
// this is injected audio
|
||||
|
||||
|
@ -107,7 +111,15 @@ int AudioMixerClientData::parseData(ReceivedMessage& message) {
|
|||
// seek to the beginning of the packet so that the next reader is in the right spot
|
||||
message.seek(0);
|
||||
|
||||
return matchingStream->parseData(message);
|
||||
// check the overflow count before we parse data
|
||||
auto overflowBefore = matchingStream->getOverflowCount();
|
||||
matchingStream->parseData(message);
|
||||
|
||||
if (matchingStream->getOverflowCount() > overflowBefore) {
|
||||
qDebug() << "Just overflowed on stream from" << message.getSourceID() << "at" << message.getSenderSockAddr();
|
||||
qDebug() << "This stream is for" << (isMicStream ? "microphone audio" : "injected audio");
|
||||
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue