mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 02:16:51 +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) {
|
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;
|
float lastInputLoudness = 0.0f;
|
||||||
if (decodedBuffer) {
|
if (decodedBuffer) {
|
||||||
auto samples = reinterpret_cast<const int16_t*>(decodedBuffer->constData());
|
auto samples = reinterpret_cast<const int16_t*>(decodedBuffer->constData());
|
||||||
|
|
Loading…
Reference in a new issue