I was checking out Google's new MyMaps feature and came across this map that shows where all these programming languages were invented and the source code to a "hello world!" program in each language.
I'm still not finished my mp3 information program, but it's coming along. Here's what I've got so far if you want to check it out.
The first choice on the main menu let's you choose which directory to search for mp3 files. For example C:\MyMusic. It can also search the subdirectories one level down, so if you have C:\MyMusic\Monkees and C:\MyMusic\Ozzy it can search those to. After setting the directory to search, selecting the second option, load data from mp3 files, goes through all the mp3's it finds and extracts their information, saving it into a temp file. [TEMP.MPI] Then you can choose option three to view the data. The detailed view isn't properly set up yet.
This is a DOS program so it doesn't support Windows long file names. It's just a program I'm working on to learn how to program in C/C++. I'll eventually do a Windows version, once I get this DOS version working properly. I'd like to have it generate an html file for easier viewing. And to be able to edit the information in mp3s. And maybe create playlists. Right now, it only reads ID3v1 tags, adding ID3v2 tag support will come soon I hope. It doesn't measure the bit rate of variable bit rate mp3s properly, I'll have to fix that later. Anyway, check it out, but it's very incomplete. Possibly buggier than hell. :)
Haven't posted much in here lately! Been kinda busy, plus nothing too exciting has happened lately. I've been trying to learn C mostly, I'm about halfway through Petzold's Programming Windows book. It's an old book but it's good for learning the Windows API, I guess. He does go on about Unicode a lot though, I wish he would have just stuck all that in an appendix rather than rave about it every second sentence.
I'm also trying to write a program, it's a DOS program right now, that reads info from MP3 files, stores it, displays it and shit. I know there's tons of programs out there already that do this sort of thing, but I'm just doing it as a programming excercise. It was going well 'til I got to the part where it actually reads the info from the file! That's when I started getting crashes every time I tested it. Unfortunately, I hadn't saved any early, working versions, so I was forced to muck about the code, ripping things out, trying to find the problem. Yuck. Now I'm making a new version every time I alter the code significantly. I did find the problem. I had a piece of code that opened a file, read the information, closed the file and moved on to the next file in the directory. The problem was, I put the fclose() function on the wrong side of the braces! Doh! The program would try to open the next file before closing the last one. Not good.
Aren't you proud of me, Bill? I was messing around, writing a DOS program in C, to read ID3 tags in mp3 files, and everything was going well. My little program could read the TAG element, artist, title, but when I tried to read the album entry, not only would my program crash, but it locked up Windows totally, requiring a hard reset! Impressive. After screwing around with the source code [and rebooting Windows once or ten times], it finally dawned on me that it might be a memory problem. Doh! Sure enough, I do the malloc(), free() thing and everything works fine. I guess the whole memory allocation thing is kinda important.