[Scummvm-cvs-logs] CVS: scummvm/backends/sdl sdl-common.h,1.26,1.27 sdl-common.cpp,1.58,1.59
Max Horn
fingolfin at users.sourceforge.net
Sun Jun 8 18:20:03 CEST 2003
Update of /cvsroot/scummvm/scummvm/backends/sdl
In directory sc8-pr-cvs1:/tmp/cvs-serv10375/backends/sdl
Modified Files:
sdl-common.h sdl-common.cpp
Log Message:
added clear_sound_proc method to backend API (this requires all backends to be modified, but can't help it)
Index: sdl-common.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/sdl/sdl-common.h,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -d -r1.26 -r1.27
--- sdl-common.h 29 May 2003 22:34:34 -0000 1.26
+++ sdl-common.h 9 Jun 2003 01:19:25 -0000 1.27
@@ -79,6 +79,8 @@
// 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
Index: sdl-common.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/sdl/sdl-common.cpp,v
retrieving revision 1.58
retrieving revision 1.59
diff -u -d -r1.58 -r1.59
--- sdl-common.cpp 8 Jun 2003 14:55:21 -0000 1.58
+++ sdl-common.cpp 9 Jun 2003 01:19:25 -0000 1.59
@@ -847,6 +847,10 @@
return true;
}
+void OSystem_SDL_Common::clear_sound_proc() {
+ SDL_CloseAudio();
+}
+
uint32 OSystem_SDL_Common::property(int param, Property *value) {
switch(param) {
More information about the Scummvm-git-logs
mailing list