Audio mmap

Hello Sam! Why SDL library audio subsytem only support mmaped audio
drivers. I mean only drivers that can mmap capability? You know, there
is several new audio cards that does not provide mmap capability :(.
Especially hiend cards for professional musucians or samplers. So I
think it would better if you add some mmap-independed code to sdl-audio
library like Michael Hipp does in mpg123 or somethin. I have some ideas
how to do it but I’m not sure how to implement it in sdl specific stuff
with no breakin existin sdl api .–
With best regards Razor.X.Jackie
"The choise is yours… walk now and live or stay and die"

Hello Sam! Why SDL library audio subsytem only support mmaped audio
drivers. I mean only drivers that can mmap capability? You know, there
is several new audio cards that does not provide mmap capability :(.
Especially hiend cards for professional musucians or samplers. So I
think it would better if you add some mmap-independed code to sdl-audio
library like Michael Hipp does in mpg123 or somethin. I have some ideas
how to do it but I’m not sure how to implement it in sdl specific stuff
with no breakin existin sdl api .

There are three different audio drivers under Linux:

ESD audio support
/dev/dsp audio support without DMA
/dev/dsp audio support with DMA

-Sam Lantinga				(slouken at devolution.com)

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

Sam Lantinga wrote:

ESD audio support
/dev/dsp audio support without DMA
/dev/dsp audio support with DMA

If I understand correctly, mmapping the device gives you access to the
DMA buffers, right? So “mmapped mode” == “with DMA”…–
Pierre Phaneuf
Systems Exorcist

Sam Lantinga wrote:

ESD audio support
/dev/dsp audio support without DMA
/dev/dsp audio support with DMA

If I understand correctly, mmapping the device gives you access to the
DMA buffers, right? So “mmapped mode” == “with DMA”…

That’s correct.

-Sam Lantinga				(slouken at devolution.com)

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