diff src/audio/SDL_audio.c @ 4398:fe15c4e8efe6 SDL-1.2

1.2: let PulseAudio hook into SDL_WM_SetCaption(). This lets Pulse's system-wide list of currently playing sources have accurate names for SDL applications. DO NOT MERGE WITH 1.3...we'll design a more formal API there.
author Ryan C. Gordon <icculus@icculus.org>
date Sun, 24 Jan 2010 08:35:09 +0000
parents 33570eec2d4f
children 963f939494a1
line wrap: on
line diff
--- a/src/audio/SDL_audio.c	Sun Jan 17 05:19:32 2010 +0000
+++ b/src/audio/SDL_audio.c	Sun Jan 24 08:35:09 2010 +0000
@@ -693,3 +693,11 @@
 	spec->size *= spec->channels;
 	spec->size *= spec->samples;
 }
+
+void SDL_Audio_SetCaption(const char *caption)
+{
+	if ((current_audio) && (current_audio->SetCaption)) {
+		current_audio->SetCaption(current_audio, caption);
+	}
+}
+