cdrd03 wrote: > I am trying to create a digital jukebox for my kids rec room. I am > having trouble figuring out how to write a program that will play > mp3's. The only thing that I have found (directx) utilizes wave files. > > I am not looking for anyone to write the program for me, instead just > nudge me in the right direction. I would greatly appreciate it. > > I will be using: > Borland Builder 6 > programming for either Windows 98 or XP. > > chuck
Chuck, What an ambitious project for your kid! The easiest way to handle the MP3 file format is to use a third-party library. There are a bunch to choose from and most are written in C/C++. I don't know how well they will hold up under Borland - most third-party libraries are built for VC++ (there are free versions available!) but can generally be made to work for other compilers. The library itself may or may not have functionality that will play MP3s as well. You may have to roll your own or dump output (waveform data) from the MP3 library out to something like SDL (which can take waveform data and put it on the sound card buffer, which in turn, is played through the speakers). Alternatively, there are a TON of MP3 programs out there already. Many are free. Some are not. download.com and snapfiles.com are pretty good starting points...if, for no other reason, to swipe...umm...get ideas from someone else. Still an excellent exercise in using third-party libraries with your compiler suite. -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 *NEW* MyTaskFocus 1.1 Get on task. Stay on task. http://www.CubicleSoft.com/MyTaskFocus/
