mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 04:44:08 +02:00
Remove HRTFs for Avatar too
Turns out there was already a function for that, if you just call removeHRTFForStream without a 2nd param, it appears to just delete the audio with uuid of QUuid() which is the avatar's mic. That is what we want, so cool.
This commit is contained in:
parent
80e38c395e
commit
e63e9bc017
1 changed files with 3 additions and 0 deletions
|
@ -603,6 +603,9 @@ void AudioMixer::handleKillAvatarPacket(QSharedPointer<ReceivedMessage> packet,
|
|||
auto clientData = dynamic_cast<AudioMixerClientData*>(sendingNode->getLinkedData());
|
||||
if (clientData) {
|
||||
clientData->removeAgentAvatarAudioStream();
|
||||
// when you don't specify a stream, this removes just the QUuid()
|
||||
// stream (which is the avatar's mic stream)
|
||||
clientData->removeHRTFForStream(sendingNode->getUUID());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue