
Originally Posted by
MIB.42
Deniska, here is the first drop on the MP3 support.
This is a development drop and not meant to be for the end-users...
1. The .zip files are .tgz files, just renamed them.
2. New files are the mp3player.c and the libmad...
3. Makefile must include now -lmad -lpspaudiolib -lpspaudio
4. Look for MIB.42_6 and MIB.42_7 for new code
5. main.c : user_main : search for MP3_ProcessM3U and MP3_PlaySnipet is to demonstrate usage, at the moment simply hijacking config and help menus... Please have a look...
The general design is, that you can call MP3_ProcessM3U with an ASCII M3U file ( list of MP3 names with locations, parsing is very flexible, it doesn't have to be ms0:\blahblah, but G:/MUSIC/blahblah.mp3 is OK as well... ) and the mp3player thread will keep the list playing. At the moment it repeats from beginning once the last song was played.
MP3_PlaySnipet is used to play temporary mp3s, the routine saves the present mp3 song context, plays the provided mp3 than continues where it left off with the song. MP3_PlaySnipet can be called multiple times, you don't have to be worried about finishing the mp3, it will handle interruptions and all the necessary restores.
My design was around the idea, that we can play an mp3list (m3u) and use occasional sound for things like announcements etc, and let the system take care of restoring the music play.
The is NO sound mixing, there is only ONE wave being played at a time.
Let me know... I will now work on some more search functions which were requested...
Cheers,
MIB.42
Bookmarks