fix for crash in Audio

This commit is contained in:
Atlante45 2014-08-27 16:03:53 -07:00
parent e8c3125985
commit 2448229b46

View file

@ -1313,7 +1313,10 @@ void Audio::freeScope() {
int Audio::addBufferToScope(QByteArray* byteArray, int frameOffset, const int16_t* source, int sourceSamplesPerChannel,
unsigned int sourceChannel, unsigned int sourceNumberOfChannels, float fade) {
if (!_scopeEnabled || _scopeEnabledPause) {
return 0;
}
// Constant multiplier to map sample value to vertical size of scope
float multiplier = (float)MULTIPLIER_SCOPE_HEIGHT / logf(2.0f);