mirror of
https://github.com/overte-org/overte.git
synced 2025-04-12 02:19:32 +02:00
Cleanup
This commit is contained in:
parent
c47d80574e
commit
f3797798d3
1 changed files with 0 additions and 14 deletions
|
@ -627,20 +627,6 @@ void Agent::encodeFrameOfZeros(QByteArray& encodedZeros) {
|
|||
}
|
||||
|
||||
void Agent::computeLoudness(const QByteArray* decodedBuffer, QSharedPointer<ScriptableAvatar> scriptableAvatar) {
|
||||
//float loudness = 0.0f;
|
||||
//if (decodedBuffer) {
|
||||
// auto soundData = reinterpret_cast<const int16_t*>(decodedBuffer->constData());
|
||||
// int numFrames = decodedBuffer->size() / sizeof(int16_t);
|
||||
// // now iterate and come up with average
|
||||
// if (numFrames > 0) {
|
||||
// for(int i = 0; i < numFrames; i++) {
|
||||
// loudness += (float) std::abs(soundData[i]);
|
||||
// }
|
||||
// loudness /= numFrames;
|
||||
// }
|
||||
//}
|
||||
//scriptableAvatar->setAudioLoudness(loudness);
|
||||
|
||||
float lastInputLoudness = 0.0f;
|
||||
if (decodedBuffer) {
|
||||
auto samples = reinterpret_cast<const int16_t*>(decodedBuffer->constData());
|
||||
|
|
Loading…
Reference in a new issue