Changing listener gain but don't affect some sources
Cédric OCHS <[email protected]>
| Newsgroups | gmane.comp.lib.openal |
|---|---|
| Message-ID | <op.vgjq51jwkj4suq@daal> |
Hi there ! I'm working on Ryzom Core open source project (http://dev.ryzom.com) and when implementing music streaming in our OpenAL wrapper, I had a problem with listener gain. There are 2 types of sources : SFX and musics. We should be able to change volume of each of them independently. In our current implementation, changing volume of a music is working fine, because we change gain of this source. But if we want to change volume of all SFX, we change gain of listener, which one is too affecting music sources (that's the problem). I tried to create 2 contexts : one for SFX and one for music (so a listener won't affect other), but it doesn't work, second context creation returns NULL. I thought about changing gain of all SFX sources, but I have to implement a local and global gain for each of them. Do you know if there could exist an alternative method to achieve that ? Could we specify some sources not to be affected by listener gain ? Thanks in advance, Cédric _______________________________________________ Openal mailing list [email protected] http://opensource.creative.com/mailman/listinfo/openal