mirror of
https://github.com/overte-org/overte.git
synced 2025-04-23 05:33:55 +02:00
add FIXME about loudness in AudioRingBuffer
This commit is contained in:
parent
ba96ab25dc
commit
4d4a68d706
1 changed files with 1 additions and 0 deletions
|
@ -187,6 +187,7 @@ int16_t* AudioRingBuffer::shiftedPositionAccomodatingWrap(int16_t* position, int
|
|||
}
|
||||
|
||||
float AudioRingBuffer::getFrameLoudness(const int16_t* frameStart) const {
|
||||
// FIXME: This is a bad measure of loudness - normal estimation uses sqrt(sum(x*x))
|
||||
float loudness = 0.0f;
|
||||
const int16_t* sampleAt = frameStart;
|
||||
const int16_t* bufferLastAt = _buffer + _bufferLength - 1;
|
||||
|
|
Loading…
Reference in a new issue