diff options
author | Eugene Sandulenko | 2004-04-28 22:21:51 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2004-04-28 22:21:51 +0000 |
commit | b59c8004a5ae25b96b0feb76784c4d10591f2dc8 (patch) | |
tree | 58eb6207f6105924edaf6ebd38ece759431754a6 /saga/syssound.cpp | |
parent | 6e75100d61322932aea9065be1e3a092f2c3c5e3 (diff) | |
download | scummvm-rg350-b59c8004a5ae25b96b0feb76784c4d10591f2dc8.tar.gz scummvm-rg350-b59c8004a5ae25b96b0feb76784c4d10591f2dc8.tar.bz2 scummvm-rg350-b59c8004a5ae25b96b0feb76784c4d10591f2dc8.zip |
code formatting insanity
svn-id: r13663
Diffstat (limited to 'saga/syssound.cpp')
-rw-r--r-- | saga/syssound.cpp | 53 |
1 files changed, 20 insertions, 33 deletions
diff --git a/saga/syssound.cpp b/saga/syssound.cpp index ca50536ffa..07d7091130 100644 --- a/saga/syssound.cpp +++ b/saga/syssound.cpp @@ -41,13 +41,9 @@ static int SoundInitialized = 0; static R_RSCFILE_CONTEXT *SoundContext; static R_RSCFILE_CONTEXT *VoiceContext; -int SYSSOUND_Init(int enabled) -{ - +int SYSSOUND_Init(int enabled) { int result; - YS_IGNORE_PARAM(enabled); - if (SoundInitialized) { return R_FAILURE; } @@ -64,12 +60,15 @@ int SYSSOUND_Init(int enabled) return R_FAILURE; } + /* Grab sound resource information for the current game + \*-------------------------------------------------------------*/ + //GAME_GetSoundInfo(&SoundModule.snd_info); + SoundInitialized = 1; return R_SUCCESS; } -int SYSSOUND_Shutdown() -{ +int SYSSOUND_Shutdown() { if (!SoundInitialized) { return R_FAILURE; } @@ -79,22 +78,22 @@ int SYSSOUND_Shutdown() return R_SUCCESS; } -int SYSSOUND_Play(int sound_rn, int channel) -{ - - (void)sound_rn; - (void)channel; +int SYSSOUND_Play(int sound_rn, int channel) { + int resource_size; + char *resource_data; if (!SoundInitialized) { return R_FAILURE; } + if (channel > 3) { + return R_FAILURE; + } + return R_SUCCESS; } -int SYSSOUND_Pause(int channel) -{ - +int SYSSOUND_Pause(int channel) { (void)channel; if (!SoundInitialized) { @@ -104,9 +103,7 @@ int SYSSOUND_Pause(int channel) return R_SUCCESS; } -int SYSSOUND_Resume(int channel) -{ - +int SYSSOUND_Resume(int channel) { (void)channel; if (!SoundInitialized) { @@ -116,9 +113,7 @@ int SYSSOUND_Resume(int channel) return R_SUCCESS; } -int SYSSOUND_Stop(int channel) -{ - +int SYSSOUND_Stop(int channel) { (void)channel; if (!SoundInitialized) { @@ -128,9 +123,7 @@ int SYSSOUND_Stop(int channel) return R_SUCCESS; } -int SYSSOUND_PlayVoice(R_SOUNDBUFFER * buf) -{ - +int SYSSOUND_PlayVoice(R_SOUNDBUFFER *buf) { (void)buf; if (!SoundInitialized) { @@ -140,9 +133,7 @@ int SYSSOUND_PlayVoice(R_SOUNDBUFFER * buf) return R_SUCCESS; } -int SYSSOUND_PauseVoice(void) -{ - +int SYSSOUND_PauseVoice(void) { if (!SoundInitialized) { return R_FAILURE; } @@ -150,9 +141,7 @@ int SYSSOUND_PauseVoice(void) return R_SUCCESS; } -int SYSSOUND_ResumeVoice(void) -{ - +int SYSSOUND_ResumeVoice(void) { if (!SoundInitialized) { return R_FAILURE; } @@ -160,9 +149,7 @@ int SYSSOUND_ResumeVoice(void) return R_SUCCESS; } -int SYSSOUND_StopVoice(void) -{ - +int SYSSOUND_StopVoice(void) { if (!SoundInitialized) { return R_FAILURE; } |