Click here to Skip to main content
12,695,365 members (27,886 online)
Click here to Skip to main content
Add your own
alternative version

Stats

82.8K views
3.4K downloads
34 bookmarked
Posted

Little Audio Player

, 3 Jan 2005
Rate this:
Please Sign up or sign in to vote.
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

Share

About the Author

gamitech
Software Developer
Romania Romania
I love VC++

You may also be interested in...

Comments and Discussions

 
QuestionArray Pin
khalil2me26-Jun-07 10:57
memberkhalil2me26-Jun-07 10:57 
Generalhelp me !! Pin
MoNa MoOn17-May-06 23:56
memberMoNa MoOn17-May-06 23:56 
AnswerRe: help me !! Pin
towerturtle18-Aug-08 14:34
membertowerturtle18-Aug-08 14:34 
Generalfmod library Pin
kamax831-Mar-06 11:17
memberkamax831-Mar-06 11:17 
GeneralRe: fmod library Pin
euacela1-Mar-06 14:34
membereuacela1-Mar-06 14:34 
QuestionRe: fmod library Pin
indee4u21-Jun-07 1:25
memberindee4u21-Jun-07 1:25 
AnswerRe: fmod library Pin
indee4u21-Jun-07 5:16
memberindee4u21-Jun-07 5:16 
AnswerRe: fmod library Pin
indee4u21-Jun-07 5:18
memberindee4u21-Jun-07 5:18 
GeneralRe: fmod library Pin
RomeoRus7772-Dec-06 22:37
memberRomeoRus7772-Dec-06 22:37 
GeneralRe: fmod library Pin
sfengtfw26-Mar-07 18:07
membersfengtfw26-Mar-07 18:07 
Questionhi,can your liberary be used for commercial intention? Pin
suchuhui1-Dec-05 17:44
membersuchuhui1-Dec-05 17:44 
AnswerRe: hi,can your liberary be used for commercial intention? Pin
euacela5-Dec-05 4:39
membereuacela5-Dec-05 4:39 
GeneralFMOD's commerical license isn't free Pin
Markus000016-Nov-05 4:24
memberMarkus000016-Nov-05 4:24 
GeneralMemory leaks Pin
Roger655-Jan-05 5:21
memberRoger655-Jan-05 5:21 
GeneralRe: Memory leaks Pin
euacela6-Jan-05 9:51
membereuacela6-Jan-05 9:51 
GeneralRe: Memory leaks Pin
Roger656-Jan-05 11:23
memberRoger656-Jan-05 11:23 
GeneralRe: Memory leaks Pin
euacela6-Jan-05 11:26
membereuacela6-Jan-05 11:26 
GeneralEuacela!!!! Pin
<font color=#3399ff>ThatsAlok3-Jan-05 22:40
memberThatsAlok3-Jan-05 22:40 
GeneralRe: Euacela!!!! Pin
euacela4-Jan-05 11:39
membereuacela4-Jan-05 11: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.

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.170118.1 | Last Updated 4 Jan 2005
Article Copyright 2005 by gamitech
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid