Startseite ¦  was ist neu ¦  programmier tips ¦  indy artikel ¦  intraweb artikel ¦  informationen ¦  links ¦  interviews ¦  sonstiges
kylix ¦  tutorials ¦  online shop ¦  fotos ¦  Add&Win Gewinnspiel


Willkommen Gast. Bitte einloggen oder registrieren.
22.05.2012, 14:47:33
Übersicht Hilfe Suche Einloggen Registrieren

+  SwissDelphiCenter Forum
|-+  German Forums
| |-+  Forum Fragen & Ankündigungen Forum
| | |-+  BASS.dll - Lesen von ID3V1 MP3 Tags
« vorheriges nächstes »
Seiten: [1] Drucken
Autor Thema: BASS.dll - Lesen von ID3V1 MP3 Tags  (Gelesen 2424 mal)
Loïs Bégué
Global Moderator
Hero Member
*****
Offline Offline

Beiträge: 1718



WWW
« am: 27.09.2004, 21:08:56 »

(( Dies gehört eigentlich unter "Tips&Tricks" ))
Utility:
Code:
unit B_ID3V1;



interface

uses

  Windows, Messages, SysUtils, Classes;



Type

  // standard definition

  PID3V1Rec = ^TID3V1Rec;

  TID3V1Rec = packed record

      Tag     : array[0..2] of Char;

      Title   : array[0..29] of Char;

      Artist  : array[0..29] of Char;

      Album   : array[0..29] of Char;

      Year    : array[0..3] of Char;

      Comment : array[0..29] of Char;

      Genre   : Byte;

    end;

const

  cID3V1FGenre : Array[0..147] of String = (

  'Blues', 'Classic Rock', 'Country', 'Dance', ..., 'Synthpop' );



function BASSID3ToID3V1Rec(PC: PChar): TID3V1Rec;



implementation



function BASSID3ToID3V1Rec(PC: PChar): TID3V1Rec;

Var

     TempID3V1: TID3V1Rec;

begin

     FillChar(Result, SizeOf(TID3V1Rec),0);

     If (PC=Nil) then Exit;

     TempID3V1:=PID3V1Rec(PC)^;

     If SameText(TempID3V1.Tag,'TAG') then  Result:=TempID3V1;

End;

Use:
Code:
Var

  ID3: TID3V1Rec;

...

  ID3:= BASSID3ToID3V1Rec(BASS_StreamGetTags(fStreamHandle, BASS_TAG_ID3));

  Showmessage(

          'Title   : ' + ID3.Title

          'Artist  : ' + ID3.Artist

          'Year    : ' + ID3.Year

          'Comment : ' + ID3.Comment

          'Genre   : ' + cID3V1FGenre[ID3.Genre]

  );

Ich poste es gleich "rüber" ;)
Gruß
Gespeichert

Prof.Y
Arpoon
Seiten: [1] Drucken 
« vorheriges nächstes »
Gehe zu:  


Einloggen mit Benutzername, Passwort und Sitzungslänge

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006, Simple Machines LLC Prüfe XHTML 1.0 Prüfe CSS