diff options
author | Chris Apers | 2003-06-09 09:48:53 +0000 |
---|---|---|
committer | Chris Apers | 2003-06-09 09:48:53 +0000 |
commit | 5ab796c4de25da84b564bd9a486cfeb5f8c5cbb3 (patch) | |
tree | e68f95d3bec68bbb8fbad5578e81a4b9cc0ee641 /backends/PalmOS/Src/palm.h | |
parent | 0eac9a00cf84656981c6f1fc247d3fbeba0a16b5 (diff) | |
download | scummvm-rg350-5ab796c4de25da84b564bd9a486cfeb5f8c5cbb3.tar.gz scummvm-rg350-5ab796c4de25da84b564bd9a486cfeb5f8c5cbb3.tar.bz2 scummvm-rg350-5ab796c4de25da84b564bd9a486cfeb5f8c5cbb3.zip |
clear_sound_proc
svn-id: r8414
Diffstat (limited to 'backends/PalmOS/Src/palm.h')
-rw-r--r-- | backends/PalmOS/Src/palm.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/backends/PalmOS/Src/palm.h b/backends/PalmOS/Src/palm.h index 7cdc637686..8c6e8b442d 100644 --- a/backends/PalmOS/Src/palm.h +++ b/backends/PalmOS/Src/palm.h @@ -85,8 +85,24 @@ public: void SimulateArrowKeys(Event *event, Int8 iHoriz, Int8 iVert, Boolean repeat); - // Set function that generates samples + /** @name Sound */ + //@{ + /** + * Set the audio callback which is invoked whenever samples need to be generated. + * Currently, only the 16-bit signed mode is ever used for Simon & Scumm + * @param proc pointer to the callback. + * @param param an arbitrary parameter which is stored and passed to proc. + * @param format the sample type format. + */ bool set_sound_proc(SoundProc *proc, void *param, SoundFormat format); + + /** + * Remove any audio callback previously set via set_sound_proc, thus effectively + * stopping all audio output immediately. + * @see set_sound_proc + */ + void clear_sound_proc(); + //@} // Poll cdrom status // Returns true if cd audio is playing |