Like anything else in MCI, you can set device information using a MCI command (string/numeric), and this time it’s the MCI_SET command.
Archive for the ‘Windows Multimedia’ Category.
This writing will focus on how you can record sound from an input device and how you can play sound files using MCI (Media Control Interface) in C and C#.
This writing does not involve a discussion or even an introduction to MCI. Instead, it provides technical discussion of what we will need to use to record and to play sound files. If you need an introduction to MCI refer to the MSDN documentation.
We will begin by a discussion to types and functions required to accomplish our tasks. Then we will look on how you can utilize those types and functions in your C or C# application.
Our demonstration examples in this writing will be in C. In the last section we will have a look at .NET and C#. Besides this, there are sample applications written by C and C# attached with the article.