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 DisplayBands component.
The WaveIn (wave recorder) component is used as a provider which has two consumers -- WaveOut (wave playback) and WaveRiff (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.