diff src/audio/alsa/SDL_alsa_audio.c @ 4321:c9a1de1eda57 SDL-1.2

Whoops, need to convert from bits to bytes for frame size.
author Ryan C. Gordon <icculus@icculus.org>
date Mon, 12 Oct 2009 08:18:36 +0000
parents 33d306630296
children 9716da353104
line wrap: on
line diff
--- a/src/audio/alsa/SDL_alsa_audio.c	Mon Oct 12 08:06:40 2009 +0000
+++ b/src/audio/alsa/SDL_alsa_audio.c	Mon Oct 12 08:18:36 2009 +0000
@@ -308,7 +308,7 @@
 	snd_pcm_uframes_t frames_left;
 	const Uint8 *sample_buf = (const Uint8 *) mixbuf;
 	const int frame_size = ( ((int) this->spec.channels) *
-	                         ((int) (this->spec.format & 0xFF)) );
+	                         (((int) (this->spec.format & 0xFF)) / 8) );
 
 	swizzle_alsa_channels(this);