changeset 382:ce998ee6194f

Sync'd with latest altcvt.
author Ryan C. Gordon <icculus@icculus.org>
date Wed, 03 Jul 2002 04:44:46 +0000
parents ef30365ac717
children 818f9af97a19
files SDL_sound.c audio_convert.c
diffstat 2 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/SDL_sound.c	Wed Jul 03 04:33:49 2002 +0000
+++ b/SDL_sound.c	Wed Jul 03 04:44:46 2002 +0000
@@ -546,7 +546,8 @@
                             sample->actual.rate,
                             desired.format,
                             desired.channels,
-                            desired.rate) == -1)
+                            desired.rate,
+                            sample->buffer_size) == -1)
     {
         Sound_SetError(SDL_GetError());
         funcs->close(sample);
--- a/audio_convert.c	Wed Jul 03 04:33:49 2002 +0000
+++ b/audio_convert.c	Wed Jul 03 04:44:46 2002 +0000
@@ -579,7 +579,8 @@
 
 int Sound_BuildAudioCVT(Sound_AudioCVT *cvt,
                         Uint16 src_format, Uint8 src_channels, Uint32 src_rate,
-                        Uint16 dst_format, Uint8 dst_channels, Uint32 dst_rate)
+                        Uint16 dst_format, Uint8 dst_channels, Uint32 dst_rate,
+                        Uint32 dst_size)
 {
         /* Start off with no conversion necessary */
     cvt->needed = 0;