Skip to contentSkip to conversation

3D accelration control interface

DISCUSSION Manuel Jander 3 participants 5 messages Nov 20, 2003

lore
Share & tools
lore
#0 lore raw

Hi,

I asked this before, but since nothing seems to happen by itself, i decided to start designing a control interface for ALSA to handle hardware assisted 3D positional audio.

Goals of the design:

* Provide a standart naming scheme to access 3D capable audio streams.

* Provide a very thin comunication layer for access to hardware specific registers.

* Provide a well defined control interface (kcontrol or ioctl) to higher level libraries like OpenAL.

* Provide 2 entry points: One for capabilities and data query and another for scene rendering (set parameters of 3D stream). This should be implemented not as system calls, but rather as kcontrol or ioctl calls.

Anyone wanting to contribute is gladly welcome to do so.

Best Regards

Manuel Jander

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/

#1 lore raw
Quoted 16 lines · Manuel Jander

Hi,

I asked this before, but since nothing seems to happen by itself, i decided to start designing a control interface for ALSA to handle hardware assisted 3D positional audio.

Goals of the design:

* Provide a standart naming scheme to access 3D capable audio streams.

* Provide a very thin comunication layer for access to hardware specific registers.

* Provide a well defined control interface (kcontrol or ioctl) to higher level libraries like OpenAL.

Quoted 7 lines

* Provide 2 entry points: One for capabilities and data query and another for scene rendering (set parameters of 3D stream). This should be implemented not as system calls, but rather as kcontrol or ioctl calls.

Anyone wanting to contribute is gladly welcome to do so.

Is there any hardware with enough documentation to write a driver?

Justin

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/

#2 lore raw

Hi,

Quoted 1 line

Is there any hardware with enough documentation to write a driver?

I guess, yes. AFAIK the ESS maestro3 HRTF engine is documented. For the aureal Vortex soundcards, there is no documentation at all, but i have just finished to tranlate the entire 3D interface code (disassembling the windows driver and tranlating into C). There are probably still bugs inside, but from my previous experience of translating the hardware EQ support, i guess there are rather few. At this point i have the information needed (and source code) to load HRTF, atmospheric filter and Interaural Time Difference (ITD) parameters into the hardware. I just have no way to link that together with something useable (user space library).

The real matter is the design of "something" to glue together ALSA and OpenAL. There may be other alternatives to OpenAL, but since its source is open, its the seems to be the best candidate.

I guess there maybe some hardware vendor related people on this list. They may be interested too.

Best Regards

Manuel

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/

#3 lore raw
In reply to Justin Cormack
Quoted 9 lines · Justin Cormack
Quoted 6 lines · Manuel Jander

Hi,

I asked this before, but since nothing seems to happen by itself, i decided to start designing a control interface for ALSA to handle hardware assisted 3D positional audio.

Is there any hardware with enough documentation to write a driver?

I think openal already has a emu10k1 backend but it uses the OSS driver. I don't have the the hardware so I don't know what it actually does.

Signature · 10 lines
Ville Syrjälä
[email protected]
http://www.sci.fi/~syrjala/


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
#4 lore raw

Hi,

This is quote from the OpenAL devel list:

---------------------------------------/quote start
...
All the fancy features that come along for the ride with DirectSound 3D under Windows -- such as HRTF -- will be there when using the DS3D backend for OpenAL under Windows. If the implementation has to fall back to DS or MMSYSTEM, a simpler software engine is run which provides pretty much the same capabilities as the Linux and MacOS versions of OpenAL. So it's true that the audio will sound different depending on whose card you have with which drivers.

...

The software renderers do simple stereo panning -- that's true. Creative and NVIDIA would really like you to buy our hardware to do more sophisticated rendering. :-)

OpenAL is open source, so if someone wants to contribute more sophisticated code to make the software path better, that's great.
...
--------------------------------------/end of quote

As you can see, there nothing being supported on linux, except some software stereo panning. Thats what i want to be changed, and why i'm into designing a ALSA-OpenAL interface for 3D (and may be other advanced features) support.

Best Regards

Quoted 9 lines · Ville Syrjälä
Quoted 8 lines · Justin Cormack
Quoted 6 lines · Manuel Jander

Hi,

I asked this before, but since nothing seems to happen by itself, i decided to start designing a control interface for ALSA to handle hardware assisted 3D positional audio.

Quoted 4 lines
Quoted 1 line

Is there any hardware with enough documentation to write a driver?

I think openal already has a emu10k1 backend but it uses the OSS driver. I don't have the the hardware so I don't know what it actually does.

-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/