It is, of course, at http://parkverbot.org/harald/download :-)

The ID3v2 tag contains classification, artist, album and title (as far as I
can remember) and is put there by things like AudioCatalyst or MusicMatch
Musicbox (if you don't tell them not to).

Harald

-------------------------------- SourceCode
attached ----------------------------------------------
// this needs to be added to the class declaration, of course
BOOL CRio::ExtractMP3HeaderBytes (FILE *fpFile, char *pszPathFile, char
*bytes) {

  char header[10];
  if ( fread(header, sizeof(header), 1, fpFile) < 1 )
  {
   LogError( CRIO_ERROR_READ, "error reading from file '%s'", pszPathFile );
   fclose( fpFile );
   return FALSE;
  }

  static const char *id3Header = "ID3";
  if (0 == memcmp (header, id3Header, 3)) {
    long skipBytes = header[9] + (int(header[8]) << 7);
    skipBytes += (int(header[7]) << 14) + (int(header[6]) << 21);
    fseek (fpFile, skipBytes, SEEK_CUR);

    if ( fread(header, 4, 1, fpFile) < 1 )
    {
      LogError( CRIO_ERROR_READ, "error reading from file '%s'",
pszPathFile );
      fclose( fpFile );
      return FALSE;
    }
  }

  memcpy (bytes, header, 4);
  rewind( fpFile );
  return TRUE;
}

// ... some stuff left out, this is somewhere in TxFile ...

 // get first four bytes of file which determine mp3 properties
 CHAR acProperty[ 4 ];
 if (!ExtractMP3HeaderBytes (fpFile, pszPathFile, acProperty)) {
  return (FALSE);
 }

// ... even later ... when cDirEntry gets initialized (or is this already
there?)
 cDirEntry.m_aucProperty[ 0 ] = acProperty[ 3 ];
 cDirEntry.m_aucProperty[ 1 ] = acProperty[ 2 ];
 cDirEntry.m_aucProperty[ 2 ] = acProperty[ 1 ];
 cDirEntry.m_aucProperty[ 3 ] = acProperty[ 0 ];


----- Original Message -----
From: "Eric Lundberg" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 23, 2000 9:25 PM
Subject: Re: Rio300SE


> Do you use the same basic upload code as the linux version? If so can you
make a patch to the current 1.07 linux version, or tell us where the code is
so we can hack in the ID3v2 stripping in.  Also what is the ID3v2 tag and
what puts it there?
>
> peace,
> --e;
>
> On Wed, Feb 23, 2000 at 06:16:39PM +0100, Harald Niesche wrote:
> > Is that the Linux version? I have code in my windows version (of the rio
> > upload code) that strips off ID3v2 tags. The ID3v2 tags are in the
beginning
> > of mp3 files and since the rio uses the first four bytes of the file to
> > extract the properties of the mp3 file these properties are wrong
whenever a
> > file has an ID3v2 tag.
> >
> > Harald
> > PS: Sorry for the long convoluted sentences.
> >
> > ----- Original Message -----
> > From: "Vincent Valenti" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Wednesday, February 23, 2000 4:39 PM
> > Subject: Rio300SE
> >
> >
> > >
> > > Has there been any further development for the 300 SE, 64 Meg model?
The
> > one I
> > > use still does not download/ipload files properly at times (for
example,
> > > sometimes it assigns songs a 72kpbs rate when thy're not).
> > >
> > > _______________________________________________
> > > Rio-dev mailing list
> > > [EMAIL PROTECTED]
> > > http://www.freeamp.org/mailman/listinfo/rio-dev
> > >
> >
> > _______________________________________________
> > Rio-dev mailing list
> > [EMAIL PROTECTED]
> > http://www.freeamp.org/mailman/listinfo/rio-dev
> _______________________________________________
> Rio-dev mailing list
> [EMAIL PROTECTED]
> http://www.freeamp.org/mailman/listinfo/rio-dev
>

_______________________________________________
Rio-dev mailing list
[EMAIL PROTECTED]
http://www.freeamp.org/mailman/listinfo/rio-dev

Reply via email to