diff src/audio/macrom/SDL_romaudio.h @ 323:b7e8038e40ae

The audio lock and unlock functions are now a part of the driver. The MacOS audio locking has been implemented, courtesy of Ryan Gordon
author Sam Lantinga <slouken@libsdl.org>
date Sat, 30 Mar 2002 20:03:27 +0000
parents f6ffac90895c
children b8d311d90021
line wrap: on
line diff
--- a/src/audio/macrom/SDL_romaudio.h	Sat Mar 30 19:48:56 2002 +0000
+++ b/src/audio/macrom/SDL_romaudio.h	Sat Mar 30 20:03:27 2002 +0000
@@ -30,16 +30,21 @@
 
 #include "SDL_sysaudio.h"
 
+/* This is Ryan's improved MacOS sound code, with locking support */
+#define USE_RYANS_SOUNDCODE
+
 /* Hidden "this" pointer for the video functions */
 #define _THIS	SDL_AudioDevice *this
 
 struct SDL_PrivateAudioData {
 	/* Sound manager audio channel */
 	SndChannelPtr channel;
-    #if ! TARGET_API_MAC_CARBON
+#if defined(TARGET_API_MAC_CARBON) || defined(USE_RYANS_SOUNDCODE)
+	/* FIXME: Add Ryan's static data here */
+#else
 	/* Double buffering variables */
 	SndDoubleBufferPtr audio_buf[2];
-    #endif
+#endif
 };
 
 /* Old variable names */