Click here to Skip to main content
15,885,985 members
Articles / Programming Languages / C#
Article

Play SoundStudio and Octamed modules in C#

Rate me:
Please Sign up or sign in to vote.
3.47/5 (8 votes)
25 Oct 2003GPL3 51.9K   641   20   3
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:

C#
using SoundStudio;

After the class beginning, write:

C#
private MedPlayer player;

and then in the part which says:

C#
// TODO: Add any constructor code after InitializeComponent call

write:

C#
player = new MedPlayer(this);

After this, you can use it like:

C#
player.Load(filename);

License

This article, along with any associated source code and files, is licensed under The GNU General Public License (GPLv3)


Written By
Student Berrevoets Systems
Netherlands Netherlands
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
QuestionThe code please Pin
naroqueen12-Apr-06 6:17
naroqueen12-Apr-06 6:17 
QuestionWhat is octmed files? Pin
Leon van Wyk1-Nov-03 2:09
professionalLeon van Wyk1-Nov-03 2:09 
AnswerRe: What is octmed files? Pin
Bert Berrevoets1-Nov-03 11:20
professionalBert Berrevoets1-Nov-03 11:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.