PreviewAudioVolumeGet Method (IMPreview)
index of a channel. Use "-1" to get a volume for all channels.
volume in dB for the selected channel.
Gets an audio volume for the preview
Syntax
Sub PreviewAudioVolumeGet( _
   ByVal _bsChannelID As String, _
   ByVal _nChannel As Integer, _
   ByRef _pdblAttenuationdB As Double _
) 
void PreviewAudioVolumeGet( 
   string _bsChannelID,
   int _nChannel,
   out double _pdblAttenuationdB
)
procedure PreviewAudioVolumeGet( 
    _bsChannelID: String;
    _nChannel: Integer;
   Out  _pdblAttenuationdB: Double
); 
void PreviewAudioVolumeGet( 
   BSTR* _bsChannelID,
   int _nChannel,
   [PARAMFLAG::Out] double _pdblAttenuationdB
) 

Parameters

_bsChannelID
_nChannel
index of a channel. Use "-1" to get a volume for all channels.
_pdblAttenuationdB
volume in dB for the selected channel.
Example

Here is an example of how to get audio volume for all the channels:

// Volume in dB
// 0 - full volume, -100 silence
double dblVol;
m_objPreview.PreviewAudioVolumeSet("", -1, out dblVol);
See Also

Reference

IMPreview Interface
IMPreview Members