Samples working in console mode
Some examples do not require GUI and still can prove to be useful. To run console application is it better to go to command line prompt or use excellent file manager FAR.
Basic tasks, such as audio recording, playback, mixing, stream encoding and decoding are easy to do with VC components. These tasks are demonstrated in a set of simple samples. Every sample performs exactly one task. You can skip this section if you are interested in more advanced examples.
We will start with deviceEnum application. It lists all audio devices installed on a system. To save the output, redirect it to a file:
Similar acmEnum application enumerates audio codecs installed on a system. It uses Microsoft Multimedia Audio API and Audio Compression Manager (ACM) routines to perform the enumeration.
Recorder and Player samples show how to record and playback audio streams with different sampling parameters. Review configuration parameters of these demos by editing the
Audio streams encoding and decoding is also one of the basic task, which is usually performed with VC components. The Codec application uses
Some applications require several audio streams to be mixed together to be played back at the same time. While many sound card drivers allow several wave streams to be played back at the same time (so they will be mixed by hardware), sometimes it is more advisable to mix audio inside your application, and that is what our Mixer sample does.
By default it mixes two input PCM files--
Mixing result will be saved in
The volLevel demo is a simple wave volume meter application, which demonstrates the usage of volume detection mechanism, supported by
As you may have already noticed, all these samples do not use VCL, so resulting executable files are very compact in size and has console target. If you are not going to use GUI and VCL in your applications, VC components still can be used efficiently. This applies for system services, custom DLLs and other kind of application where GUI is not needed.
Precompiled binary of this sample is included in the Demos package.