Re: New QT possibly breaks 3DMixer OpenAL
Re: New QT possibly breaks 3DMixer OpenAL
- Subject: Re: New QT possibly breaks 3DMixer OpenAL
- From: Brian Barnes <email@hidden>
- Date: Fri, 7 May 2004 00:23:13 -0400
Further testing.
I got OpenAL from the CVS tip ... got the core audio SDK, compiled.
This one behaves differently, but it's still ... wrong? Maybe the
older OpenAL's were wrong and now this one is right, it's hard to tell
at this time :)
The one of the creative site seems to have no volume change, this one
seems to have the same problem as the earlier bug, where the sound is
very loud if next to the listener, and becomes quiet (at the same
level) everywhere else, but this doesn't seem to be a precision issue
because I tried the same trick to fix it and it doesn't work.
Maybe I need to rethink my settings for this version of OpenAL. What I
am trying to do (and this has been a discussion on the list more than
once) is to create a sound model where from listener to distance A, the
sound is at 100%, and from distance A to distance B if gradually
decreases from 100% (at A) to 0% (at B). Then I cull it.
This worked in OpenAL before this version:
alSourcef(source,AL_REFERENCE_DISTANCE,distance_A);
alSourcef(source,AL_MAX_DISTANCE,distance_B);
alSourcef(source,AL_ROLLOFF_FACTOR,(distance_A*(((1/0.001)-1)/
(distance_B-distance_A))));
(for AL_INVERSE_DISTANCE_CLAMPED)
This doesn't seem to work anymore. I've tried a lot of different
settings (especially rolloff to 1) and it still seems to do about the
same thing. I'm dying for a simple distance model! :)
Also, could the project on the OpenAL CVS create a framework? This is
how I use OpenAL, and how I expect the users to use it (and how the
creative site has it.) I know I can cobble it together from the dylib,
but it'd be a bit more handy :)
[>] Brian
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.