Use Active Audio Play Object in C#

Our Audio Record component has  simple playback functions for mp3, wma, ogg or wave files.

You can use play object in C# easily like the record object since it is a standard COM object like the record one.

In the C# project, assume you have added the AudioCtl.dll as reference. The following is a function to play mp3, wav or wma files.

        private void PlayFile(string filename)


            AudioCtl.CAudioPlay play = null;

            play = new AudioCtl.CAudioPlayClass();



Remember you need to install Windows media format SDK to play mp3, wma files.