Audio Level: Configuration & Usage
Line 6: | Line 6: | ||
===Number of channels=== | ===Number of channels=== | ||
The number of channels in the connected audio stream can be obtained using the IMLAudioLevel::GetChannels() function. Maximum possible number of channels: 32. | The number of channels in the connected audio stream can be obtained using the IMLAudioLevel::GetChannels() function. Maximum possible number of channels: 32. | ||
− | <br> | + | <br><br> |
− | + | ===VU-meter=== | |
− | VU-meter | + | |
− | + | ||
The current sound level in dB for the specified channel can be get using IMLAudioLevel::GetLevel() method. | The current sound level in dB for the specified channel can be get using IMLAudioLevel::GetLevel() method. | ||
VU-meter properties (attack and release time in ms) are set using methods IMLAudioLevel::SetAttackTime() and SetReleaseTime(). | VU-meter properties (attack and release time in ms) are set using methods IMLAudioLevel::SetAttackTime() and SetReleaseTime(). | ||
The attack (rise) time is the time to reach an amplitude of 90% (-2dB) for a step signal of 0 -> 1, and the release (fall) time is an amplitude of 10% (-20dB) for a step signal of 1 -> 0. | The attack (rise) time is the time to reach an amplitude of 90% (-2dB) for a step signal of 0 -> 1, and the release (fall) time is an amplitude of 10% (-20dB) for a step signal of 1 -> 0. | ||
If the VU-meter is not needed, then its operation can be disabled using the IMLAudioLevel::EnableProcessing() method. | If the VU-meter is not needed, then its operation can be disabled using the IMLAudioLevel::EnableProcessing() method. | ||
− | |||
<br><br> | <br><br> |
Revision as of 13:32, 9 April 2021
Brief description of the Audio Level DirectShow filter capabilities. Interface IMLAudioLevel can be found in file <filter installation directory>\Idl\ALevel.idl
Configuration & Usage
Number of channels
The number of channels in the connected audio stream can be obtained using the IMLAudioLevel::GetChannels() function. Maximum possible number of channels: 32.
VU-meter
The current sound level in dB for the specified channel can be get using IMLAudioLevel::GetLevel() method.
VU-meter properties (attack and release time in ms) are set using methods IMLAudioLevel::SetAttackTime() and SetReleaseTime().
The attack (rise) time is the time to reach an amplitude of 90% (-2dB) for a step signal of 0 -> 1, and the release (fall) time is an amplitude of 10% (-20dB) for a step signal of 1 -> 0.
If the VU-meter is not needed, then its operation can be disabled using the IMLAudioLevel::EnableProcessing() method.