Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles
(untagged)

Little Audio Player

0.00/5 (No votes)
3 Jan 2005 1  
This article demonstrates a very simple way to play MP3 files and with a very efficient programming engine from FMOD.

Sample Image

Introduction

The article I will present is nothing much really. I just tried to make a very good copy of Winamp. The SDK can easily be found on here with full support even for Linux OS-s and with all the documentation you need.

Using the code

The code is really very easy to use. The functions from the FMOD SDK look like this:

FSOUND_Sample_Load(
int index,
const char *name_or_data,
unsigned int inputmode,
int offset,
int length
);

or

FSOUND_PlaySound(
int channel,
FSOUND_SAMPLE *sptr
);

The SDK from FMOD is very useful. The thing I liked about it is that it loads and decodes a static sound file into memory. This includes such files as .WAV, .MP2, .MP3, .OGG, .RAW and others. There is no big deal to explain about the code because it is all in the documentation. I posted this article for the ones that need a very powerful and easy to use SDK for game developing.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here