aboutsummaryrefslogtreecommitdiff
path: root/backends/PalmOS
diff options
context:
space:
mode:
authorChris Apers2005-10-12 20:53:55 +0000
committerChris Apers2005-10-12 20:53:55 +0000
commit5e1af3190c86feef380bbd27ba87c2b36bdd9497 (patch)
tree78077defb0e97c72c5904237b93d56a7f075287e /backends/PalmOS
parent016620838a417689065ba8d7d71d7a2ae49eebb0 (diff)
downloadscummvm-rg350-5e1af3190c86feef380bbd27ba87c2b36bdd9497.tar.gz
scummvm-rg350-5e1af3190c86feef380bbd27ba87c2b36bdd9497.tar.bz2
scummvm-rg350-5e1af3190c86feef380bbd27ba87c2b36bdd9497.zip
Added volume parameter
svn-id: r19051
Diffstat (limited to 'backends/PalmOS')
-rw-r--r--backends/PalmOS/Src/init_pa1lib.cpp12
-rw-r--r--backends/PalmOS/Src/init_pa1lib.h4
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