Skip to content

Commit

Permalink
Sync'd with latest altcvt.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jul 3, 2002
1 parent 577508f commit b9875e3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion SDL_sound.c
Expand Up @@ -546,7 +546,8 @@ static int init_sample(const Sound_DecoderFunctions *funcs,
sample->actual.rate,
desired.format,
desired.channels,
desired.rate) == -1)
desired.rate,
sample->buffer_size) == -1)
{
Sound_SetError(SDL_GetError());
funcs->close(sample);
Expand Down
3 changes: 2 additions & 1 deletion audio_convert.c
Expand Up @@ -579,7 +579,8 @@ int Sound_ConvertAudio(Sound_AudioCVT *cvt)

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;
Expand Down

0 comments on commit b9875e3

Please sign in to comment.