Click here to Skip to main content
15,878,814 members
Articles / Desktop Programming / MFC
Article

Little Audio Player

Rate me:
Please Sign up or sign in to vote.
1.44/5 (19 votes)
3 Jan 2005 96.9K   3.7K   34   19
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


Written By
Software Developer
Romania Romania
I love VC++

Comments and Discussions

 
QuestionArray Pin
khalil2me26-Jun-07 9:57
khalil2me26-Jun-07 9:57 
Generalhelp me !! Pin
MoNa MoOn17-May-06 22:56
MoNa MoOn17-May-06 22:56 
AnswerRe: help me !! Pin
TowerTurtle18-Aug-08 13:34
TowerTurtle18-Aug-08 13:34 
Generalfmod library Pin
kamax831-Mar-06 10:17
kamax831-Mar-06 10:17 
GeneralRe: fmod library Pin
gamitech1-Mar-06 13:34
gamitech1-Mar-06 13:34 
QuestionRe: fmod library Pin
indee4u21-Jun-07 0:25
indee4u21-Jun-07 0:25 
AnswerRe: fmod library Pin
indee4u21-Jun-07 4:16
indee4u21-Jun-07 4:16 
AnswerRe: fmod library Pin
indee4u21-Jun-07 4:18
indee4u21-Jun-07 4:18 
GeneralRe: fmod library Pin
RomeoRus7772-Dec-06 21:37
RomeoRus7772-Dec-06 21:37 
GeneralRe: fmod library Pin
sfengtfw26-Mar-07 17:07
sfengtfw26-Mar-07 17:07 
Questionhi,can your liberary be used for commercial intention? Pin
suchuhui1-Dec-05 16:44
suchuhui1-Dec-05 16:44 
AnswerRe: hi,can your liberary be used for commercial intention? Pin
gamitech5-Dec-05 3:39
gamitech5-Dec-05 3:39 
GeneralFMOD's commerical license isn't free Pin
Markus000016-Nov-05 3:24
Markus000016-Nov-05 3:24 
GeneralMemory leaks Pin
Roger655-Jan-05 4:21
Roger655-Jan-05 4:21 
GeneralRe: Memory leaks Pin
gamitech6-Jan-05 8:51
gamitech6-Jan-05 8:51 
GeneralRe: Memory leaks Pin
Roger656-Jan-05 10:23
Roger656-Jan-05 10:23 
GeneralRe: Memory leaks Pin
gamitech6-Jan-05 10:26
gamitech6-Jan-05 10:26 
GeneralEuacela!!!! Pin
ThatsAlok3-Jan-05 21:40
ThatsAlok3-Jan-05 21:40 
GeneralRe: Euacela!!!! Pin
gamitech4-Jan-05 10:39
gamitech4-Jan-05 10:39 

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.