CVS update (audio support)

The biggest changes in the new SDL snapshots are DMA audio support under
Linux, and the initial cut of audio support on MacOS thanks to Darrel
Walisser. The DMA code noticeably reduces the latency of the Linux audio,
and getting any sound out of the Mac is, to me, amazing! :slight_smile:

SDL 1.0:
http://www.devolution.com/~slouken/SDL/cvs/SDL-1.0.tar.gz

SDL 1.1:
http://www.devolution.com/~slouken/SDL/cvs/SDL-1.0.tar.gz

Changes:

  • Linux audio driver uses DMA by default, when available
  • Fixed a crash in 8-bit mode when using X11 video
  • Initial audio support on MacOS (thanks Darrell Walisser)
  • The Win32 WaveOut audio driver works even better now

I’m gearing up to release SDL 1.0.4, so please test the new CVS snapshots
thoroughly!

Enjoy. :slight_smile:
-Sam Lantinga (slouken at devolution.com)

Lead Programmer, Loki Entertainment Software–
“Any sufficiently advanced bug is indistinguishable from a feature”
– Rich Kulawiec

Hi,

I’ve been trying to set up sound on my Linux box for ages. I have a Maxisound
Home Studio Pro 64. Does the DMA routines call the sound drivers or will it
work on an unconfigured card? Oh man, this is such a stupid question…

-Lea.

Sam Lantinga wrote:> The biggest changes in the new SDL snapshots are DMA audio support under

Linux, and the initial cut of audio support on MacOS thanks to Darrel
Walisser. The DMA code noticeably reduces the latency of the Linux audio,
and getting any sound out of the Mac is, to me, amazing! :slight_smile:

Lea Anthony wrote:

I’ve been trying to set up sound on my Linux box for ages. I have a
Maxisound Home Studio Pro 64. Does the DMA routines call the sound
drivers or will it work on an unconfigured card? Oh man, this is such
a stupid question…

No, it still requires a normally working sound card. And I think some
cards don’t support DMA (but I guess this fail overs nicely to regular
non-DMA sound).

DMA is used by mmapp()ing the /dev/dsp device (this being a
programming-related discussion group that you either know what is mmap()
or are able to find out by Reading The Fine Manual), so the /dev/dsp
device has to work in the first place.–
Pierre Phaneuf
Ludus Design, http://ludusdesign.com/

Hi,

I’ve been trying to set up sound on my Linux box for ages. I have a Maxisound
Home Studio Pro 64. Does the DMA routines call the sound drivers or will it
work on an unconfigured card? Oh man, this is such a stupid question…

It uses the OSS API, so yes, it has to be configured with a sound driver.

-Sam Lantinga				(slouken at devolution.com)

Lead Programmer, Loki Entertainment Software–
“Any sufficiently advanced bug is indistinguishable from a feature”
– Rich Kulawiec