Audio limiter

"Mariusz 'MX' Szaflik" <[email protected]> Fri, 30 Nov 2012 09:35:10 +0100
Newsgroups gmane.comp.lib.openal
Message-ID <[email protected]>
Hi

I'm porting some XAudio2 stuff (from PC/XBox) to the OpenAL (MAC, but I 
may use OAL-SOFT as well) and I'm in need to use limiter
to dynamicaly adjust volumes of played sounds based on feedback 
information from mixer itself.
In XAudio there is a XAPO filter 'volume meter' with returns Average and 
Peak _UNCLIPPED_ volumes per channel from each mixer quantum, from that 
feedback information
I could easily create limiter that eliminates audio clipping almost 
completly.

How to acomplish this properly in OpenAL ? I do not see any extension 
that could give me the feedback info of UNCLIPPED volumes.
For now I'v implemented dirty hack in OpenAL-Soft that calculates MAX of 
all samples produced by mixer before clipping (in each step (2048 
samples or so)) and developer my extension from this ... but I want to 
avoid custom OAL builds if it is possible at all (for maintance reasons 
mainly).

Thanks for any ideas.


_______________________________________________
Openal mailing list
[email protected]
http://opensource.creative.com/mailman/listinfo/openal