Re: ANN: Burn.app 0.3.0

[email protected] Thu, 27 Feb 2003 21:58:27 +1100 (EST)
Newsgroups gmane.comp.lib.gnustep.applications,gmane.comp.lib.gnustep.general
Message-ID <[email protected]>
On 27 Feb, Andreas Heppel wrote:
>  Unfortunately, tracks  
>  on an audio CD apart from not having a file extension don't have a MIME-type  
>  or something similar either (AFAIK) 

The Unix "file" utility doesn't depend on MIME types.  What happens if
you try this experiment:

    for each track file f
    {
        FILE *stream;
        char buff[1024];
        char s[1024];

	stream = popen(sprintf(s, "dd if=%s bs=1000c count=1", f));
        fgets(buff, sizeof buff, stream);
        pclose(stream);
        printf("File %s is of type: %s\n", buff);
    }

Does that provide the needed info?

luke