Re: Changing listener gain but don't affect some sources
Cédric OCHS <[email protected]>
| Newsgroups | gmane.comp.lib.openal |
|---|---|
| Message-ID | <op.vgkfy3onkj4suq@daal> |
First, thanks a lot for your answer Eric :) > Even if second context creation worked for you, I have a suspicion > that the way it behaves will be implementation specific and you might > still not be happy if you care about cross-platform. I haven't > verified this, but I suspect that on iOS for example, the moment you > change contexts, the swapped out context may get disabled so you can't > hear it any more. (This is because you are expected to make the > current context NULL to effectively disable it when an interruption > event like a phone call comes in.) This would be bad for background > music. Ok, thanks :) >> 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 ? > > Personally, I don't know of any other way of doing this. I think you > will have to do it manually. Maybe somebody else knows of an > extension. I finally managed to manually set gain for all sources depending on their type (sound or music). It was less work I thought first and all is working fine. OpenAL is really great :) Cédric _______________________________________________ Openal mailing list [email protected] http://opensource.creative.com/mailman/listinfo/openal