Skip to content
Permalink
Browse files

Whoops, need to convert from bits to bytes for frame size.

  • Loading branch information
icculus committed Oct 12, 2009
1 parent cb0729a commit 80d2a252de2446e314354f7cd7c85d98034f1ea6
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/audio/alsa/SDL_alsa_audio.c
@@ -308,7 +308,7 @@ static void ALSA_PlayAudio(_THIS)
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);

0 comments on commit 80d2a25

Please sign in to comment.