add sample preview volume setting
it was too loud
This commit is contained in:
parent
41bd28c41a
commit
41544bcced
5 changed files with 31 additions and 2 deletions
|
|
@ -3246,6 +3246,10 @@ void DivEngine::setMetronomeVol(float vol) {
|
|||
metroVol=vol;
|
||||
}
|
||||
|
||||
void DivEngine::setSamplePreviewVol(float vol) {
|
||||
previewVol=vol;
|
||||
}
|
||||
|
||||
void DivEngine::setConsoleMode(bool enable) {
|
||||
consoleMode=enable;
|
||||
}
|
||||
|
|
@ -3450,6 +3454,7 @@ bool DivEngine::initAudioBackend() {
|
|||
clampSamples=getConfInt("clampSamples",0);
|
||||
lowLatency=getConfInt("lowLatency",0);
|
||||
metroVol=(float)(getConfInt("metroVol",100))/100.0f;
|
||||
previewVol=(float)(getConfInt("sampleVol",50))/100.0f;
|
||||
midiOutClock=getConfInt("midiOutClock",0);
|
||||
midiOutTime=getConfInt("midiOutTime",0);
|
||||
midiOutTimeRate=getConfInt("midiOutTimeRate",0);
|
||||
|
|
@ -3457,6 +3462,8 @@ bool DivEngine::initAudioBackend() {
|
|||
midiOutMode=getConfInt("midiOutMode",DIV_MIDI_MODE_NOTE);
|
||||
if (metroVol<0.0f) metroVol=0.0f;
|
||||
if (metroVol>2.0f) metroVol=2.0f;
|
||||
if (previewVol<0.0f) previewVol=0.0f;
|
||||
if (previewVol>1.0f) previewVol=1.0f;
|
||||
renderPoolThreads=getConfInt("renderPoolThreads",0);
|
||||
|
||||
if (lowLatency) logI("using low latency mode.");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue