[API function]
FSOUND_GetCurrentVU
Returns a VU reading at the current position of the specified channel.
VU meters are only supported for software channels currently.
float F_API
FSOUND_GetCurrentVU
(
int
channel
);
Parameters
channel
Channel number/handle to retrieve VU meter value from.
Return Value
On success, a value between 0.0 and 1.0 is returned representing the actual amplitude of
the waveform of current channel.
On failure, 0 is returned.
Remarks
To get an overall VU reading, add all VU values for each channel together, and then
clip at 1.0. Another (harder) way is to write a dsp unit that reads from the mixbuffer
being passed into it.
Note: A true 'VU' should be smoothed, but in case people were after more accuracy than
a smoothed value, i decided to return the raw amplitude, and let the user smooth the
result if they like.
This document copyright ©Firelight Multimedia, 1999-2001. All rights reserved.
Generated Thu Sep 13 00:18:09 2001 by SourceDoc v0.10, the automated source code documenter.