comparison 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
comparison
equal deleted inserted replaced
4320:33d306630296 4321:c9a1de1eda57
306 { 306 {
307 int status; 307 int status;
308 snd_pcm_uframes_t frames_left; 308 snd_pcm_uframes_t frames_left;
309 const Uint8 *sample_buf = (const Uint8 *) mixbuf; 309 const Uint8 *sample_buf = (const Uint8 *) mixbuf;
310 const int frame_size = ( ((int) this->spec.channels) * 310 const int frame_size = ( ((int) this->spec.channels) *
311 ((int) (this->spec.format & 0xFF)) ); 311 (((int) (this->spec.format & 0xFF)) / 8) );
312 312
313 swizzle_alsa_channels(this); 313 swizzle_alsa_channels(this);
314 314
315 frames_left = ((snd_pcm_uframes_t) this->spec.samples) / this->spec.channels; 315 frames_left = ((snd_pcm_uframes_t) this->spec.samples) / this->spec.channels;
316 316