diff options
Diffstat (limited to 'backends')
-rw-r--r-- | backends/PalmOS/Src/init_pa1lib.cpp | 12 | ||||
-rw-r--r-- | backends/PalmOS/Src/init_pa1lib.h | 4 |
2 files changed, 8 insertions, 8 deletions
diff --git a/backends/PalmOS/Src/init_pa1lib.cpp b/backends/PalmOS/Src/init_pa1lib.cpp index bae109264f..d5b0340cae 100644 --- a/backends/PalmOS/Src/init_pa1lib.cpp +++ b/backends/PalmOS/Src/init_pa1lib.cpp @@ -10,18 +10,18 @@ void *sndStateOffFuncP = NULL; #define SndStateOn(a,b,c) if (sndStateOnFuncP)((sndStateOnType)(sndStateOnFuncP))(a, b, c); #define SndStateOff(a) if (sndStateOffFuncP)((sndStateOffType)(sndStateOffFuncP))(a); -void Pa1libInit() { +void Pa1libInit(UInt16 vol) { Pa1Lib_Open(); // Doesn't work on T4xx and T6xx series ? FtrGet(sonySysFtrCreatorSystem, sonySysFtrNumSystemAOutSndStateOnHandlerP, (UInt32*) &sndStateOnFuncP); FtrGet(sonySysFtrCreatorSystem, sonySysFtrNumSystemAOutSndStateOffHandlerP, (UInt32*) &sndStateOffFuncP); - SndStateOn(aOutSndKindSp, 31, 31); - SndStateOn(aOutSndKindHp, 31, 31); + SndStateOn(aOutSndKindSp, vol, vol); + SndStateOn(aOutSndKindHp, vol, vol); - Pa1Lib_devHpVolume(31, 31); - Pa1Lib_devSpVolume(31); + Pa1Lib_devHpVolume(vol, vol); + Pa1Lib_devSpVolume(vol); } void Pa1libRelease() { @@ -29,4 +29,4 @@ void Pa1libRelease() { SndStateOff(aOutSndKindHp); Pa1Lib_Close(); -}
\ No newline at end of file +} diff --git a/backends/PalmOS/Src/init_pa1lib.h b/backends/PalmOS/Src/init_pa1lib.h index c3ac12b05a..d5be11d278 100644 --- a/backends/PalmOS/Src/init_pa1lib.h +++ b/backends/PalmOS/Src/init_pa1lib.h @@ -16,7 +16,7 @@ typedef void (*sndStateOffType) (UInt8 /* kind */); #define aOutSndKindSp (0) /* Speaker volume */ #define aOutSndKindHp (2) /* HeadPhone volume */ -void Pa1libInit(); +void Pa1libInit(UInt16 vol); void Pa1libRelease(); -#endif
\ No newline at end of file +#endif |