65.9K
CodeProject is changing. Read more.
Home

Play SoundStudio and Octamed modules in C#

starIconstarIconstarIcon
emptyStarIcon
starIcon
emptyStarIcon

3.47/5 (8 votes)

Oct 26, 2003

GPL3
viewsIcon

52288

downloadIcon

643

Playing Octamed modules in C#.

Introduction

I was searching for a way to play Octamed files in C#. What I have done is I made a wrapper class to use the DLL that came with the developer files from RBF software.

To use it, just import the MedPlayer.cs to your project. To compile, you must change your project settings to allow unsafe code blocks.

The medpdll.dll file must be in your executable path. To work in your project, you must write the following:

using SoundStudio;

After the class beginning, write:

private MedPlayer player;

and then in the part which says:

// TODO: Add any constructor code after InitializeComponent call

write:

player = new MedPlayer(this);

After this, you can use it like:

player.Load(filename);