Whoops, need to convert from bits to bytes for frame size. SDL-1.2
authorRyan C. Gordon <icculus@icculus.org>
Mon, 12 Oct 2009 08:18:36 +0000
branchSDL-1.2
changeset 4321c9a1de1eda57
parent 4320 33d306630296
child 4322 a8e5b518e194
Whoops, need to convert from bits to bytes for frame size.
src/audio/alsa/SDL_alsa_audio.c
     1.1 --- a/src/audio/alsa/SDL_alsa_audio.c	Mon Oct 12 08:06:40 2009 +0000
     1.2 +++ b/src/audio/alsa/SDL_alsa_audio.c	Mon Oct 12 08:18:36 2009 +0000
     1.3 @@ -308,7 +308,7 @@
     1.4  	snd_pcm_uframes_t frames_left;
     1.5  	const Uint8 *sample_buf = (const Uint8 *) mixbuf;
     1.6  	const int frame_size = ( ((int) this->spec.channels) *
     1.7 -	                         ((int) (this->spec.format & 0xFF)) );
     1.8 +	                         (((int) (this->spec.format & 0xFF)) / 8) );
     1.9  
    1.10  	swizzle_alsa_channels(this);
    1.11