2009-01-24 05:56:11 -05:00
|
|
|
$OpenBSD: patch-src_audio_SDL_audio_c,v 1.16 2009/01/24 10:56:11 jakemsr Exp $
|
2008-03-19 09:33:29 -04:00
|
|
|
--- src/audio/SDL_audio.c.orig Sun Dec 30 20:47:59 2007
|
2009-01-24 05:56:11 -05:00
|
|
|
+++ src/audio/SDL_audio.c Thu Jan 22 20:40:14 2009
|
2008-11-02 09:53:51 -05:00
|
|
|
@@ -36,6 +36,9 @@
|
|
|
|
|
|
|
|
/* Available audio drivers */
|
|
|
|
static AudioBootStrap *bootstrap[] = {
|
2009-01-24 05:56:11 -05:00
|
|
|
+#if SDL_AUDIO_DRIVER_SNDIO
|
|
|
|
+ &SNDIO_bootstrap,
|
2008-11-02 09:53:51 -05:00
|
|
|
+#endif
|
|
|
|
#if SDL_AUDIO_DRIVER_BSD
|
|
|
|
&BSD_AUDIO_bootstrap,
|
|
|
|
#endif
|
2009-01-24 05:56:11 -05:00
|
|
|
@@ -532,7 +535,7 @@ int SDL_OpenAudio(SDL_AudioSpec *desired, SDL_AudioSpe
|
2007-08-14 11:51:07 -04:00
|
|
|
return(-1);
|
|
|
|
}
|
|
|
|
if ( audio->convert.needed ) {
|
2007-09-21 21:12:38 -04:00
|
|
|
- audio->convert.len = (int) ( ((double) desired->size) /
|
2007-08-14 11:51:07 -04:00
|
|
|
+ audio->convert.len = (int) ( ((double) audio->spec.size) /
|
2007-09-21 21:12:38 -04:00
|
|
|
audio->convert.len_ratio );
|
2007-08-14 11:51:07 -04:00
|
|
|
audio->convert.buf =(Uint8 *)SDL_AllocAudioMem(
|
|
|
|
audio->convert.len*audio->convert.len_mult);
|