General info | Getting started | Samples | Components reference | FAQ | Solutions |


Volume Control

This example demonstrates how to use VolumeControl component and give applications control over installed Windows mixers.

This component can be used in two ways:

1. Simple
As IvcproVolumeControlX interface.

RecSource property indicates the recording source channel. Set RecSource = rsCurrent if you don't want to change the current channel.

Use GetRecVolume, SetRecVolume, GetPlayVolume and SetPlayVolume methods to get or set recording/playback channel volume.

Playback volume control functions (GetPlayVolume and SetPlayVolume) require additional PlayDest parameter. It specifies playback channel to use. When PlayDest = psTotal, the total playback level will be adjusted.

2. Full
As IvcproVolumeControl2X interface.

GetMixerCount, GetMixerName and SelectMixer enumerate mixer devices.
GetLineCount, GetLineName and GetLineIndex methods enumerate lines of selected mixer.
GetLineConnectionCount, GetLineConnectionName, GetLineConnectionType and GetLineConnectionByType methods work with line connections.
GetVolume and SetVolume methods work with volume level of specified connection.
IsMutedConnection and MuteConnection methods let examine whether specific connection is muted, and change its mute state.
GetRecSource and SetRecSource methods let you control which connection is current for recording.

See also...

Simple WaveIn-WaveOut loopback, WAVe recorder/player, ASIO, Mixer, MultiConsumer, TalkNow, Voice Chat, Conference, Remote Lecturer, DirectStream, IP Streaming, RTSP Multi-Transmitter Server, STUN Server and Client, RTP Conference, Web sample: MediaGate Client

VCX Library 3.0 © 2012 Lake of Soft
All rights reserved.