Indixo
Indixo is a small C++ utility that shows you how to
perform and parse freedb.org-CDDB query's,
and how to parse the information into a normal C++ class.
It is a commandline program in C++, but it's easy to
rewrite it for a GUI-program in C++. Because Indixo does
the query's through HTTP, Indixo also shows you
-as a bonus- how to do a platform independent
HTTP request in C++.
Platform Issue's
Indixo runs on several platforms, including Windows
variants and several unix variants. My part runs
on these platforms, but for the CD-read
code it's different. I've included CDDBIGEN
( http://www.freedb.org/software/cddbidgen.zip ) to read
the code from the CD, which works on Windows. To read
the code from MacOSX and other unix OS'es, I've also
included CD-DISCID (http://frantica.lly.org/~rcw/cd-discid ).
I've used CDDBIGEN practically unchanged: I renamed .c
files to .cpp and I disabled line 9 in toc.cpp for
a nicer errormessage. For CD-DISCID it's nearly the
same: I only renamed the main() into indixo_AreadCDcode()
and to get it working on my Mac I had to fix a bug by
adding something, like mentioned inside the .cpp file.
Name Indixo
This program was originally written for the studentclub
'Biton" in the Netherlands (http://www.biton.nl/), to easily
create an index for all our disco CD's. The name Indixo is a
mixture of 'Index' and 'Disco'.
Disclaimer
This is free sourcecode, do whatever you want with it, I'm
not responsible for anything at all. And please mail if you
use it frequently or use it in a big project or if you
find any bugs.
Protocol versions
Because I have other things to do in my life, I do not support
the latest protocol version (that's 6 right now) but only
5, because then I do not have to support UTF-8. In e-mail
to the freedb.org people, I received this:
> http://freedesktop.org/software/utf-8
> http://www.utf8.com/
> http://en.wikipedia.org/wiki/UTF-8
> http://www.changhai.org/contents/technology/misc/utf-8.html
>
> The cddbd server software contains source code for UTF-8 conversions
> (UTF-8 to ISO-8859-1 and US-ASCII and vice versa) but if you find the
> GPL a problem, you'd probably need to look somewhere else.
Download it here:
indixo103.zip (69kb)
Niels Gorisse (niels AT bonneville.nl - and use 'indixo' in
the title or an other normal title (not none) otherwise I
delete it as spam).
1.0 20 April 2004
1.01 28 May 2004
1.03 11 Sept 2004