Coding Standard default values

This commit is contained in:
Atlante45 2014-10-20 12:11:29 -07:00
parent 85d56824a0
commit ce949b7350
2 changed files with 22 additions and 11 deletions

View file

@ -5,7 +5,18 @@
#include "AudioEffectOptions.h"
AudioEffectOptions::AudioEffectOptions() { }
AudioEffectOptions::AudioEffectOptions() :
_maxRoomSize(50.0f),
_roomSize(50.0f),
_reverbTime(4.0f),
_damping(0.5f),
_spread(15.0f),
_inputBandwidth(0.75f),
_earlyLevel(-22.0f),
_tailLevel(-28.0f),
_dryLevel(0.0f),
_wetLevel(6.0f) {
}
QScriptValue AudioEffectOptions::constructor(QScriptContext* context, QScriptEngine* engine) {
return engine->newQObject(new AudioEffectOptions());

View file

@ -74,26 +74,26 @@ private:
// http://wiki.audacityteam.org/wiki/GVerb#Instant_Reverberb_settings
// Meters Square
float _maxRoomSize = 50.0f;
float _roomSize = 50.0f;
float _maxRoomSize;
float _roomSize;
// Seconds
float _reverbTime = 4.0f;
float _reverbTime;
// Ratio between 0 and 1
float _damping = 0.5f;
float _damping;
// ? (Does not appear to be set externally very often)
float _spread = 15.0f;
float _spread;
// Ratio between 0 and 1
float _inputBandwidth = 0.75f;
float _inputBandwidth;
// dB
float _earlyLevel = -22.0f;
float _tailLevel = -28.0f;
float _dryLevel = 0.0f;
float _wetLevel = 6.0f;
float _earlyLevel;
float _tailLevel;
float _dryLevel;
float _wetLevel;
};
#endif /* defined(__hifi__AudioEffectOptions__) */