Tue, 13 Oct 2009 09:59:20 +0000Use the plug: ALSA devices for surround sound formats, which have automatic sample format/rate conversion. SDL-1.2
Sam Lantinga [Tue, 13 Oct 2009 09:59:20 +0000] rev 4334
Use the plug: ALSA devices for surround sound formats, which have automatic sample format/rate conversion.
Based on feedback from the ALSA development mailing list:
http://mailman.alsa-project.org/pipermail/alsa-devel/2009-October/022267.html

Tue, 13 Oct 2009 09:56:15 +0000Switched from setting the period size and count to setting the buffer size directly, based on feedback from the ALSA development list: SDL-1.2
Sam Lantinga [Tue, 13 Oct 2009 09:56:15 +0000] rev 4333
Switched from setting the period size and count to setting the buffer size directly, based on feedback from the ALSA development list:
http://mailman.alsa-project.org/pipermail/alsa-devel/2009-October/022267.html

This has the nice side effect of reducing latency on my SBLive! card.

Tue, 13 Oct 2009 09:35:37 +0000ALSA's idea of a "frame" is the same as SDL's idea of a "sample". The frame is a single sample on a single channel, and we've defined the frames for each channel as being interleaved. SDL-1.2
Sam Lantinga [Tue, 13 Oct 2009 09:35:37 +0000] rev 4332
ALSA's idea of a "frame" is the same as SDL's idea of a "sample". The frame is a single sample on a single channel, and we've defined the frames for each channel as being interleaved.

Tue, 13 Oct 2009 09:24:05 +0000Fixed debug code to print correct values SDL-1.2
Sam Lantinga [Tue, 13 Oct 2009 09:24:05 +0000] rev 4331
Fixed debug code to print correct values
Passed a meaningful value to snd_pcm_sw_params_set_start_threshold()

Tue, 13 Oct 2009 08:42:40 +0000On recent distributions ALSA pipes streams through PulseAudio anyway, so using PulseAudio first when it's available will improve latency and reduce ALSA configuration quirks. SDL-1.2
Sam Lantinga [Tue, 13 Oct 2009 08:42:40 +0000] rev 4330
On recent distributions ALSA pipes streams through PulseAudio anyway, so using PulseAudio first when it's available will improve latency and reduce ALSA configuration quirks.

Tue, 13 Oct 2009 08:27:28 +0000Corrected my snd_pcm_writei fix. SDL-1.2
Ryan C. Gordon [Tue, 13 Oct 2009 08:27:28 +0000] rev 4329
Corrected my snd_pcm_writei fix.

Apparently ALSA says "frames" but it means samples...you don't split this into
groups by number of channels.

The adventure continues.

Tue, 13 Oct 2009 06:45:02 +0000Only show the dynamic audio libraries if we'll be dynamically loading them SDL-1.2
Sam Lantinga [Tue, 13 Oct 2009 06:45:02 +0000] rev 4328
Only show the dynamic audio libraries if we'll be dynamically loading them

Tue, 13 Oct 2009 05:20:09 +0000Simplify and improve dynamic library detection, taken from SDL_image SDL-1.2
Sam Lantinga [Tue, 13 Oct 2009 05:20:09 +0000] rev 4327
Simplify and improve dynamic library detection, taken from SDL_image

Tue, 13 Oct 2009 04:23:34 +0000We don't need dlvsym() for ALSA anymore, yay! SDL-1.2
Sam Lantinga [Tue, 13 Oct 2009 04:23:34 +0000] rev 4326
We don't need dlvsym() for ALSA anymore, yay!

Mon, 12 Oct 2009 23:21:19 +0000Merged fix from SDL 1.3 SDL-1.2
Sam Lantinga [Mon, 12 Oct 2009 23:21:19 +0000] rev 4325
Merged fix from SDL 1.3