diff src/audio/alsa/SDL_alsa_audio.h @ 4359:4b582c04ec1d SDL-1.2

Recoomendation from Lennart Poettering: I guess I don't have to mention that, but ALSA_WaitAudio() is pure evil, and just broken. getpid() returns pids, not tids. You get those via gettid(). But I'd recommend dropping that entirely. It's just broken.
author Sam Lantinga <slouken@libsdl.org>
date Mon, 19 Oct 2009 02:36:02 +0000
parents 464126f4c7db
children
line wrap: on
line diff
--- a/src/audio/alsa/SDL_alsa_audio.h	Mon Oct 19 02:33:07 2009 +0000
+++ b/src/audio/alsa/SDL_alsa_audio.h	Mon Oct 19 02:36:02 2009 +0000
@@ -35,9 +35,6 @@
 	/* The audio device handle */
 	snd_pcm_t *pcm_handle;
 
-	/* The parent process id, to detect when application quits */
-	pid_t parent;
-
 	/* Raw mixing buffer */
 	Uint8 *mixbuf;
 	int    mixlen;
@@ -45,7 +42,6 @@
 
 /* Old variable names */
 #define pcm_handle		(this->hidden->pcm_handle)
-#define parent			(this->hidden->parent)
 #define mixbuf			(this->hidden->mixbuf)
 #define mixlen			(this->hidden->mixlen)