mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 21:43:03 +02:00
Proportional dry fraction
This commit is contained in:
parent
e2218de71b
commit
de2b86957b
1 changed files with 1 additions and 1 deletions
|
@ -566,8 +566,8 @@ void Audio::setReverbOptions(const AudioEffectOptions* options) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void Audio::addReverb(int16_t* samplesData, int numSamples, QAudioFormat& audioFormat) {
|
void Audio::addReverb(int16_t* samplesData, int numSamples, QAudioFormat& audioFormat) {
|
||||||
float dryFraction = DB_CO(_reverbOptions->getDryLevel());
|
|
||||||
float wetFraction = DB_CO(_reverbOptions->getWetLevel());
|
float wetFraction = DB_CO(_reverbOptions->getWetLevel());
|
||||||
|
float dryFraction = 1.0f - wetFraction;
|
||||||
|
|
||||||
float lValue,rValue;
|
float lValue,rValue;
|
||||||
for (int sample = 0; sample < numSamples; sample += audioFormat.channelCount()) {
|
for (int sample = 0; sample < numSamples; sample += audioFormat.channelCount()) {
|
||||||
|
|
Loading…
Reference in a new issue