Skip to content

Commit

Permalink
Thilo helped me track down the audio issue with 22050 hz stereo sound…
Browse files Browse the repository at this point in the history
…. Yay!
  • Loading branch information
slouken committed Oct 14, 2009
1 parent 96bd09a commit 46e244c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/audio/alsa/SDL_alsa_audio.c
Expand Up @@ -317,7 +317,7 @@ static void ALSA_PlayAudio(_THIS)
int status;
snd_pcm_uframes_t frames_left;
const Uint8 *sample_buf = (const Uint8 *) mixbuf;
const int sample_size = ((int) (this->spec.format & 0xFF)) / 8;
const int frame_size = (((int) (this->spec.format & 0xFF)) / 8) * this->spec.channels;

swizzle_alsa_channels(this);

Expand Down Expand Up @@ -346,7 +346,7 @@ static void ALSA_PlayAudio(_THIS)
}
continue;
}
sample_buf += status * sample_size;
sample_buf += status * frame_size;
frames_left -= status;
}
}
Expand Down

0 comments on commit 46e244c

Please sign in to comment.