[mb-devel] No C# samples?
Catherine
catherine at ripfactory.com
Thu Jan 11 17:44:51 UTC 2007
Hi,
Another small question for Lukas. I have tried using your cdlookup example
with discid.dll and it has made things much easier - for which many thanks
indeed. However, I haven't been able to get the discid_read() function to
work because I don't know what to pass in as a device identifier. I've tried
everything around the drive letter (e.g. E:, E cdaudio!E:) that I can think
of (the getdefault() function returns "cdaudio") without success; I have
also tried just numbers (0,1) with the same result ("No audio devices"
message). Passing in "CD-ROM X" reads from the internal drive regardless of
X.
Could you give me an example of what I should pass in, or is it only
possible to read from the internal/default drive?
Many many thanks for your help
-----Original Message-----
From: musicbrainz-devel-bounces at lists.musicbrainz.org
[mailto:musicbrainz-devel-bounces at lists.musicbrainz.org] On Behalf Of Lukáš
Lalinský
Sent: 06 January 2007 21:57
To: MusicBrainz development list
Subject: Re: [mb-devel] No C# samples?
Mark Garvin wrote / napísal(a):
> Your replies seem to indicate that there is no C# sample code
> available at present. Picture vs 1000 words and all, wouldn't
> it be good to have a basic skeleton of a running app in various
> languages? (especially C#). That would be a good start for the
> OP, and maybe a compelling illustration for others.
I've put something simple together, see the attachment. It uses libdiscid
[1] to
calculate a DiscID, System.Net.WebClient to get the XML from the web service
and
then System.Xml.XmlDocument to parse it to a DOM tree. It's written for
Linux,
but I think that porting it to Windows should be only matter of changing
"libdiscid.so.0" to "discid.dll".
[1] http://musicbrainz.org/doc/libdiscid
> PS: Are there no C# programmers onboard?
Ex-C# programmer here :) I wrote this sample mainly because I wanted to try
Mono
(I used to work only with MS tools).
More information about the MusicBrainz-devel
mailing list