how do i Create a command line based music player, which will list out the songs available, allow the user to create a play list. Play the song, skip track, and shuffle the tracks.
The play list size should be dynamic
can any one help me out???
how do i Create a command line based music player, which will list out the songs available, allow the user to create a play list. Play the song, skip track, and shuffle the tracks.
The play list size should be dynamic
can any one help me out???
Err... you're basically presenting a vague sketch of the requirements of a program that might not be very trivial, and then asking for help. That's tough.
What exactly do you need to help with?
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
If you are on a Windows OS check out the command set in MCI. It's very easy to play music this way and it will play anything you have a standard codec for.
As for the listings, playlists etc. Check out the M3U standard. It's very simple and interchanges with many of the more popular media players.
The rest is just disk access and array sorting.
Get yourself started, post your code if you run into troubles and lets see what happens...
Oh really, would you like some champagne with your code as well?
1. Get rid of gets(). Never ever ever use it again. Replace it with fgets() and use that instead.
2. Get rid of void main and replace it with int main(void) and return 0 at the end of the function.
3. Get rid of conio.h and other antiquated DOS crap headers.
4. Don't cast the return value of malloc, even if you always always always make sure that stdlib.h is included.
Some problems are like shooting fish in a barrel.
mplayer - command line movie and music player - music over ssh | Linux Operating System
If you want the source - go find it.
Then read it to figure out the basics of reading a file, and opening an audio device.
The rest is just detail.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.