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

Samples


MultiConsumer

This example demonstrates how to attach several consumers to one provider. Audio stream originating from provider will be distributed automatically between consumers without any additional source code.

Also, this sample demonstrates how to use vcproDisplayBandsX component.

The vcproWaveInDeviceX (wave recorder) component is used as a provider which has two consumers -- vcproWaveOutDeviceX (wave playback) and vcproWaveRiffX (wave file save). Both consumers will receive exactly the same stream.

Notice the AddConsumer and RemoveConsumer routines, which are used to add or remove consumers at runtime. When consumer is added, it will be assigned proper audio format and activated as required.

Before it was only possible to have one consumer per one provider. New version allows unlimited number of consumers to be attached.


See also...

Simple WaveIn-WaveOut loopback, WAVe recorder/player, Mixer, TalkNow, Voice Chat, Conference, Equalizer, Multi-band Splitter, Volume Control, Remote Lecturer, DirectStream, Web sample: MediaGate Client


VCX Library 3.0
Copyright © 2002-2008 Lake of Soft, Ltd
All rights reserved.