How i can get id3tags from mp3 with reggae?
  • Order of the Butterfly
    Order of the Butterfly
    pegasos-sigi2
    Posts: 265 from 2006/8/31
    I know how i can play sound with reggae.
    But i don't know how i can get the id3tags from mp3.

    Can anybody help me.
    Spreedy - The spreedsheet editor of MorphOS
    Calimero - Do you know about the new DTP Program for MorphOS ?
  • »21.10.14 - 14:34
    Profile
  • MorphOS Developer
    geit
    Posts: 1034 from 2004/9/23
    mti = (struct MetaItem*) MediaGetPort( mediaobject, 0, MMA_MetaData );

    Then you can access the mti structure and obtain the information you need.

    struct MetaItem *mti is an array of meta stuff just like it is done for tooltypes and valid
    until mi_Id is MMETA_BAD_ID, which is the last item in chain.

    Geit
  • »21.10.14 - 17:18
    Profile
  • MorphOS Developer
    Krashan
    Posts: 1107 from 2003/6/11
    From: Białystok...
    Some additional information:
    1. MetaItem is defined in <classes/multimedia/metadata.h>.
    2. If MetaItem contains textual information, the text is encoded in UTF-32. It can be converted to the system charset with charsets.library.
    3. While id3tag.demuxer has a complete ID3v2 (2.2, 2.3, 2.4) and ID3v1 tag parser, only basic ID3v2 tags are supported.

    [ Edited by Krashan 21.10.2014 - 17:46 ]
  • »21.10.14 - 17:43
    Profile Visit Website
  • MorphOS Developer
    zukow
    Posts: 643 from 2005/2/9
    From: Poland
    parsing metadata is an old api, please use MMM_GetMetaItem for getting metadata, for example:

    DoMethod(filter, MMM_GetMetaItem, MMETA_Title, &importance, &data->title, MIBENUM_SYSTEM, 0);
  • »22.10.14 - 03:07
    Profile Visit Website
  • MorphOS Developer
    Krashan
    Posts: 1107 from 2003/6/11
    From: Białystok...
    True, looping over MetaItem table should be used only if one is interested in getting all available metadata. Programs reading only some predefined set, should use MMM_GetMetaItem(). For text data it takes care of charset conversion, as in rzookol's example. On the other hand, Geit's method is neither "hackish" nor obsolete, just less comfortable.
  • »22.10.14 - 06:41
    Profile Visit Website