]> rtime.felk.cvut.cz Git - l4.git/blobdiff - l4/pkg/libsdl/lib/src/src/audio/SDL_audio.c
update
[l4.git] / l4 / pkg / libsdl / lib / src / src / audio / SDL_audio.c
index 30345c70857fea976e53296c7abcc9d3d763145d..2cf51ac0f95f2e1975fdf67c548498e6ba2e8e15 100644 (file)
 
 /* Available audio drivers */
 static AudioBootStrap *bootstrap[] = {
-#if SDL_AUDIO_DRIVER_BSD
-       &BSD_AUDIO_bootstrap,
-#endif
 #if SDL_AUDIO_DRIVER_PULSE
        &PULSE_bootstrap,
 #endif
 #if SDL_AUDIO_DRIVER_ALSA
        &ALSA_bootstrap,
 #endif
+#if SDL_AUDIO_DRIVER_BSD
+       &BSD_AUDIO_bootstrap,
+#endif
 #if SDL_AUDIO_DRIVER_OSS
        &DSP_bootstrap,
        &DMA_bootstrap,
@@ -699,3 +699,11 @@ void SDL_CalculateAudioSpec(SDL_AudioSpec *spec)
        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);
+       }
+}
+