mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:24:00 +02:00
Reference and comments
This commit is contained in:
parent
1e6cadc7c1
commit
dcfeef4712
2 changed files with 3 additions and 2 deletions
|
@ -587,8 +587,9 @@ void Audio::addReverb(int16_t* samplesData, int numSamples, QAudioFormat& audioF
|
|||
}
|
||||
}
|
||||
|
||||
void Audio::handleLocalEchoAndReverb(QByteArray inputByteArray) {
|
||||
void Audio::handleLocalEchoAndReverb(QByteArray& inputByteArray) {
|
||||
bool hasEcho = Menu::getInstance()->isOptionChecked(MenuOption::EchoLocalAudio);
|
||||
// If there is server echo, reverb will be applied to the recieved audio stream so no need to have it here.
|
||||
bool hasLocalReverb = (_reverb || _receivedAudioStream.hasReverb()) &&
|
||||
!Menu::getInstance()->isOptionChecked(MenuOption::EchoServerAudio);
|
||||
if (_muted || !_audioOutput || (!hasEcho && !hasLocalReverb)) {
|
||||
|
|
|
@ -273,7 +273,7 @@ private:
|
|||
void updateGverbOptions();
|
||||
void addReverb(int16_t* samples, int numSamples, QAudioFormat& format);
|
||||
|
||||
void handleLocalEchoAndReverb(QByteArray inputByteArray);
|
||||
void handleLocalEchoAndReverb(QByteArray& inputByteArray);
|
||||
|
||||
// Add sounds that we want the user to not hear themselves, by adding on top of mic input signal
|
||||
void addProceduralSounds(int16_t* monoInput, int numSamples);
|
||||
|
|
Loading…
Reference in a new issue