mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 23:01:47 +02:00
commit
61a09146cd
1 changed files with 4 additions and 1 deletions
|
@ -1313,7 +1313,10 @@ void Audio::freeScope() {
|
||||||
|
|
||||||
int Audio::addBufferToScope(QByteArray* byteArray, int frameOffset, const int16_t* source, int sourceSamplesPerChannel,
|
int Audio::addBufferToScope(QByteArray* byteArray, int frameOffset, const int16_t* source, int sourceSamplesPerChannel,
|
||||||
unsigned int sourceChannel, unsigned int sourceNumberOfChannels, float fade) {
|
unsigned int sourceChannel, unsigned int sourceNumberOfChannels, float fade) {
|
||||||
|
if (!_scopeEnabled || _scopeEnabledPause) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
// Constant multiplier to map sample value to vertical size of scope
|
// Constant multiplier to map sample value to vertical size of scope
|
||||||
float multiplier = (float)MULTIPLIER_SCOPE_HEIGHT / logf(2.0f);
|
float multiplier = (float)MULTIPLIER_SCOPE_HEIGHT / logf(2.0f);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue