Advertisement

music player

Started by January 21, 2005 06:17 PM
4 comments, last by jbadams 19 years, 10 months ago
how would i go about creating a simple music player??
Quote: Original post by cellman
how would i go about creating a simple music player??
Do you intend to write a graphical interface for some existing library routines or are you interested in the library itself?
What kind of music do you want to play, raw audio files (WAV, MP3, OGG), tracked modules (MOD, XM, IT) or something with waveform synthesis (MID)?
Also what kind of interface do you want to create and for which platform?

As you can see you'll have to be more precise in specifying what it is that you want to create in order for us to help you. To "create a music player" is a bit vauge..
Advertisement
I was wondering how to create an audio player that playes all formats and has a gui and equilizer??

here is what I mean

I am a newbie to audio programming and I want to create a media player that supports all formats. Just so long as it can play audio files it doesn't matter, but i want it to play all files perticularly mp3's



1. what is code is needed to play music?? (i.e direct misic)

how do you get perticular types of music to play?? (i.e ogg, mp3)

2. How do I create an Gui for it and how do Gui's work??

how Do you write a graphical interface ??

What are library routines ??

If they apply then yes I am going to add them.

I want to create it for windows and mac


for some existing library routines or are you interested in the library itself?

What kind of music do I want it to play ???

All types
WAV, MP3, OGG,MOD, XM, IT,MID

Also what kind of interface do you want to create and for which platform?

I want to creat a gui

and it will be for mac and windows
First of all you'll need a portable library to handle music decoding/playback for you, preferably a single one that handles all of the formats you require. FMOD for example.
On top of that you'll need a portable widget library to create the user interface, such as wxWindows.
Both of these will of course have to be tied togheter in portable a programming language capable of interfacing those two libraries, like C++.

Oh, and lots of time and google access..
To comprehensively answer your question would take a week, there are a LOT of questions there. From the amount and type of questions asked, I assume that you're still a beginning programmer, in which case, I'd advise using as many pre-existing libraries as possible. Remember to check the licences on any libraries you use - they may require you to open-source your project, or pay royalties, and if this isn't acceptable to you, you'll need to find alternate libraries. Also, if you wish to produce your program for both Windows and Mac, you'll need to make sure the libraries you use are cross-platform (or write two seperate versions of the program... much harder).

A library is pre-existing code that you can use, to save you having to do all the work yourself. "Library routines" simply refers to the functions found within this code. If you don't use pre-existing libraries of code, the task will be much harder. For the requirements you've set, even using libraries this will be a relatively complex project.

Try searching for open-source music/audio playback libraries. FMOD is a commonly used library. During your searches, you may also come across OpenAL, but it isn't well suited to this particular type of project.

Then, do the same for a GUI library.

Tying these libraries together and adding in any other code needed will be up to you, and will take a lot of work. In my opinion, after looking through your post-history, this project may be too difficult for you at the present time, but if you wish to proceed, then good luck. [smile]
How odd... the above AP was me.

- Jason Astle-Adams

This topic is closed to new replies.

Advertisement