Audio Level: Configuration & Usage

From AVObjects Knowledge Base
(Difference between revisions)
Jump to: navigation, search
Line 6: Line 6:
 
<OL>
 
<OL>
 
Number of channels
 
Number of channels
 +
<LI>
 
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.
 
</OL>
 
</OL>
Line 12: Line 13:
 
<OL>
 
<OL>
 
VU-meter
 
VU-meter
 +
<LI>
 
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().

Revision as of 13:30, 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
  1. 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
  1. 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.



Personal tools