summaryrefslogtreecommitdiffstats
path: root/Gui/mplayer/mixer.c
blob: 0178f3dd29e0fcbacb5a1b259e2e5dd575068d70 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39

#include "play.h"

float mixerGetVolume( void )
{
// ---
// ---
 return mplShMem->Volume;
}

void mixerSetVolume( float v )
{ // 0.0 ... 100.0
// ---
printf("%%%%%% mixerSetVolume(%5.3f)  \n",v);
// ---
 mplShMem->Volume=v;
}

void mixerIncVolume( void )
{
 mixerSetVolume(  mixerGetVolume() + 1.0f );
}

void mixerDecVolume( void )
{
 mixerSetVolume(  mixerGetVolume() - 1.0f );
}

void mixerMute( void )
{
}

void mixerSetBalance( float b )
{
// ---
// ---
printf("%%%%%% mixerSetBalance(%5.3f)  \n",b);
 mplShMem->Balance=b;
}