mirror of
https://github.com/vale981/openAV-Luppp
synced 2025-03-04 16:51:37 -05:00
metronome: reduce default volume (fixes #180)
Thanks CoderKun for reporting
This commit is contained in:
parent
f6369e96c7
commit
ce55862c41
1 changed files with 4 additions and 3 deletions
|
@ -33,7 +33,6 @@ Metronome::Metronome() :
|
|||
TimeObserver(),
|
||||
playBar (false),
|
||||
active (false),
|
||||
vol (1),
|
||||
playPoint (0)
|
||||
{
|
||||
//Create Beat/Bar samples
|
||||
|
@ -50,6 +49,8 @@ Metronome::Metronome() :
|
|||
barSample [i]= sin(i*scale*2);
|
||||
}
|
||||
|
||||
setVolume(0.5);
|
||||
|
||||
// don't play after creation
|
||||
playPoint = endPoint + 1;
|
||||
}
|
||||
|
@ -71,8 +72,8 @@ void Metronome::setActive(bool a)
|
|||
|
||||
void Metronome::setVolume( float v )
|
||||
{
|
||||
vol = v;
|
||||
printf(" vol = %f \n", vol );
|
||||
vol = v * 0.5;
|
||||
//printf(" vol = %f \n", vol );
|
||||
}
|
||||
|
||||
void Metronome::bar()
|
||||
|
|
Loading…
Add table
Reference in a new issue