tapping into openal output possible?

View: New views
2 Messages — Rating Filter:   Alert me  

tapping into openal output possible?

by Johahn Leung :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

G'day,

i am interested in porting our HRTF library with openAL and testing it with the various games out there.
In the first instance, i'd like to simply tap the output of the sound card and create virtual 5.1 or 7.1 sources with 
individual HRTFs and headphones.

So my question is, is it possible to take the output of openAL, work out which speaker the source or buffer will be send to?
then I can add my filtering code there.

I can't seem to find what i need looking at the source or buffer properties, as they don't specify which speaker/channels
it will be played in.

cheers

/j



___________________________
Johahn Leung
Auditory Neuroscience Laboratory
Department of Physiology
University of Sydney
S +612 80113898
T +612 93512019
F +612 93518259





_______________________________________________
Openal-devel mailing list
Openal-devel@...
http://opensource.creative.com/mailman/listinfo/openal-devel

Re: tapping into openal output possible?

by Jason Daly :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Johahn Leung wrote:

> G'day,
>
> i am interested in porting our HRTF library with openAL and testing it
> with the various games out there.
> In the first instance, i'd like to simply tap the output of the sound
> card and create virtual 5.1 or 7.1 sources with
> individual HRTFs and headphones.
>
> So my question is, is it possible to take the output of openAL, work
> out which speaker the source or buffer will be send to?
> then I can add my filtering code there.
>
> I can't seem to find what i need looking at the source or buffer
> properties, as they don't specify which speaker/channels
> it will be played in.

I don't think you'll be able to do this through the API.  If you look at
the source for OpenAL-Soft, though, it shouldn't be too hard to figure
out where to plug in your HRTF code.

In other words, I don't think you can tap the output of the sound card,
but you should be able to tap the output from OpenAL *before* it's sent
to the sound card.

Hope this helps,

--"J"
_______________________________________________
Openal-devel mailing list
Openal-devel@...
http://opensource.creative.com/mailman/listinfo/openal-devel