mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-12 16:36:45 +02:00
Coding Standard default values
This commit is contained in:
parent
85d56824a0
commit
ce949b7350
2 changed files with 22 additions and 11 deletions
|
@ -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());
|
||||
|
|
|
@ -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__) */
|
||||
|
|
Loading…
Reference in a new issue