Click here to Skip to main content
Licence 
First Posted 3 Jan 2005
Views 71,783
Bookmarked 32 times

Little Audio Player

By | 3 Jan 2005 | Article
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

About the Author

gamitech

Software Developer

Romania Romania

Member

I love VC++

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
QuestionArray Pinmemberkhalil2me9:57 26 Jun '07  
Generalhelp me !! PinmemberMoNa MoOn22:56 17 May '06  
AnswerRe: help me !! Pinmembertowerturtle13:34 18 Aug '08  
Generalfmod library Pinmemberkamax8310:17 1 Mar '06  
GeneralRe: fmod library Pinmembereuacela13:34 1 Mar '06  
QuestionRe: fmod library Pinmemberindee4u0:25 21 Jun '07  
AnswerRe: fmod library Pinmemberindee4u4:16 21 Jun '07  
AnswerRe: fmod library Pinmemberindee4u4:18 21 Jun '07  
GeneralRe: fmod library PinmemberRomeoRus77721:37 2 Dec '06  
GeneralRe: fmod library Pinmembersfengtfw17:07 26 Mar '07  
Questionhi,can your liberary be used for commercial intention? Pinmembersuchuhui16:44 1 Dec '05  
AnswerRe: hi,can your liberary be used for commercial intention? Pinmembereuacela3:39 5 Dec '05  
GeneralFMOD's commerical license isn't free PinmemberMarkus00003:24 16 Nov '05  
GeneralMemory leaks PinmemberRoger654:21 5 Jan '05  
GeneralRe: Memory leaks Pinmembereuacela8:51 6 Jan '05  
GeneralRe: Memory leaks PinmemberRoger6510:23 6 Jan '05  
GeneralRe: Memory leaks Pinmembereuacela10:26 6 Jan '05  
GeneralEuacela!!!! PinmemberThatsAlok21:40 3 Jan '05  
GeneralRe: Euacela!!!! Pinmembereuacela10:39 4 Jan '05  

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

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

Permalink | Advertise | Privacy | Mobile
Web04 | 2.5.120517.1 | Last Updated 4 Jan 2005
Article Copyright 2005 by gamitech
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid