diff options
author | Max Horn | 2003-06-09 01:19:25 +0000 |
---|---|---|
committer | Max Horn | 2003-06-09 01:19:25 +0000 |
commit | 82af035f91077551b4bbf3a284d49b50e36bc88d (patch) | |
tree | b4bab4e5b8159d63f7297e6f99b95de95d86207a /backends | |
parent | 35ef32cf4bb23139ff32e6a445fffb6ab639acde (diff) | |
download | scummvm-rg350-82af035f91077551b4bbf3a284d49b50e36bc88d.tar.gz scummvm-rg350-82af035f91077551b4bbf3a284d49b50e36bc88d.tar.bz2 scummvm-rg350-82af035f91077551b4bbf3a284d49b50e36bc88d.zip |
added clear_sound_proc method to backend API (this requires all backends to be modified, but can't help it)
svn-id: r8409
Diffstat (limited to 'backends')
-rw-r--r-- | backends/sdl/sdl-common.cpp | 4 | ||||
-rw-r--r-- | backends/sdl/sdl-common.h | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/backends/sdl/sdl-common.cpp b/backends/sdl/sdl-common.cpp index 34cbdedfb3..3d3acf573e 100644 --- a/backends/sdl/sdl-common.cpp +++ b/backends/sdl/sdl-common.cpp @@ -847,6 +847,10 @@ bool OSystem_SDL_Common::set_sound_proc(SoundProc *proc, void *param, SoundForma return true; } +void OSystem_SDL_Common::clear_sound_proc() { + SDL_CloseAudio(); +} + uint32 OSystem_SDL_Common::property(int param, Property *value) { switch(param) { diff --git a/backends/sdl/sdl-common.h b/backends/sdl/sdl-common.h index 89d28a8087..c5e6847ffa 100644 --- a/backends/sdl/sdl-common.h +++ b/backends/sdl/sdl-common.h @@ -79,6 +79,8 @@ public: // Set function that generates samples bool set_sound_proc(SoundProc *proc, void *param, SoundFormat format); + + void clear_sound_proc(); // Poll CD status // Returns true if cd audio is playing |