Re: Some qustion about the distance and capture
Jason Daly <[email protected]> Thu, 26 Apr 2012 12:03:22 -0400
| Newsgroups | gmane.comp.lib.openal |
|---|---|
| Message-ID | <[email protected]> |
On 04/26/2012 11:45 AM, chaoshikari wrote: > Im new to openal, and I met some problems while trying to use it. > 1.Does the AL_SPEED_OF_SOUND affect the listener? Will it apply a delay > between listener and source while the distance is long? The AL_SPEED_OF_SOUND parameter only affects the calculations for the Doppler effect. The equations for the Doppler effect are in the OpenAL specification. > 2.Could the capture functions be used to capture what listener hears? Not in unextended OpenAL. OpenAL-Soft version 1.14 has an extension to accomplish this: http://kcat.strangesoft.net/openal-extensions/SOFT_loopback.txt > 3.How does the gain works?I called the function > alDistanceModel(AL_NONE), but nothing happens. Then I tried to call > alListenerfv(AL_GAIN,AL_NONE), it gives out an error. What do you mean by how does the gain work, exactly? What are you trying to do with it? In general the gain specifies how much to attenuate the sound stream before rendering it. Floating point values between 0 and 1 are typical. alListenerfv expects a pointer to an array of values, so I'm not surprised that you got an error. You might want to read the specification to get a better understanding of how this all works: http://connect.creativelabs.com/openal/Documentation/OpenAL%201.1%20Specification.pdf --"J" _______________________________________________ Openal mailing list [email protected] http://opensource.creative.com/mailman/listinfo/openal