Skip to content

Commit

Permalink
Whoops, need to convert from bits to bytes for frame size.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Oct 12, 2009
1 parent cb0729a commit 80d2a25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/audio/alsa/SDL_alsa_audio.c
Expand Up @@ -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);

Expand Down

0 comments on commit 80d2a25

Please sign in to comment.