mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-16 09:40:10 +02:00
poke per-avatar gain into per-stream HRTF
This commit is contained in:
parent
238f59f229
commit
b86f553550
1 changed files with 1 additions and 1 deletions
|
@ -378,7 +378,7 @@ void AudioMixerSlave::addStream(AudioMixerClientData& listenerNodeData, const QU
|
|||
|
||||
if (streamToAdd.getType() == PositionalAudioStream::Injector) {
|
||||
// apply per-avatar gain to positional audio injectors, which wouldn't otherwise be affected by PAL sliders
|
||||
gain *= listenerNodeData.hrtfForStream(sourceNodeID, QUuid()).getGainAdjustment();
|
||||
hrtf.setGainAdjustment(listenerNodeData.hrtfForStream(sourceNodeID, QUuid()).getGainAdjustment());
|
||||
}
|
||||
|
||||
hrtf.render(_bufferSamples, _mixSamples, HRTF_DATASET_INDEX, azimuth, distance, gain,
|
||||
|
|
Loading…
Reference in a new issue