Thu, 15 Oct 2009 02:52:11 +0000Fixed bug #728 SDL-1.2
Sam Lantinga [Thu, 15 Oct 2009 02:52:11 +0000] rev 4337
Fixed bug #728

I am using a headset on my monitor as primary sound output device. From time to
time it happens that I switch off my monitor when I leave my computer and
switch it on when I come back.
When doing so while wesnoth is running I get no sound back when I switch on my
monitor. There is probably good reason for that. Therefore I wanted to exit and
restart wesnoth. Unfortunately, wesnoth always hangs in this situation. It
looks like wesnoth can not be exited when the primary sound device vanished.
I created a backtrace of this situation (please see attachment).

Wed, 14 Oct 2009 07:34:35 +0000Thilo helped me track down the audio issue with 22050 hz stereo sound. Yay! SDL-1.2
Sam Lantinga [Wed, 14 Oct 2009 07:34:35 +0000] rev 4336
Thilo helped me track down the audio issue with 22050 hz stereo sound. Yay!

Tue, 13 Oct 2009 18:14:13 +0000Add a note for experimental Milan support. SDL-1.2
Patrice Mandin [Tue, 13 Oct 2009 18:14:13 +0000] rev 4335
Add a note for experimental Milan support.

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