ich habe da irgendwie mal wieder ein Problemchen
Ich lese den Header der MP3s so aus:
Code: Alles auswählen
openedFile = TAP_Hdd_Fopen(pItem->File.name);
if (openedFile) {
TAP_Hdd_Fseek(openedFile, -128, SEEK_END);
TAP_Hdd_Fread(TAG, 3, 1, openedFile);
TAG[3] = 0;
if (!strcmp(TAG, "TAG")) {
TAP_Hdd_Fread(pItem->songTitle, sizeof(pItem->songTitle), 1, openedFile);
TAP_Hdd_Fread(pItem->songInterpreter, sizeof(pItem->songInterpreter), 1, openedFile);
TAP_Hdd_Fread(pItem->songAlbum, sizeof(pItem->songAlbum), 1, openedFile);
TAP_Hdd_Fread(pItem->songYear, sizeof(pItem->songYear), 1, openedFile);
TAP_Print("%s\n", pItem->songTitle);
TAP_Print("%s\n", pItem->songInterpreter);
TAP_Print("%s\n", pItem->songAlbum);
TAP_Print("%s\n\n", pItem->songYear);
}
TAP_Hdd_Fclose(openedFile);
}
Code: Alles auswählen
Das Spiel [Radiomix] Annett Louisan Boheme 2004Datum: 03.02.2005 11:27 UhrCode: Alles auswählen
Annett Louisan Boheme 2004Datum: 03.02.2005 11:27 UhrCode: Alles auswählen
Boheme 2004Datum: 03.02.2005 11:27 UhrCode: Alles auswählen
2004Datum: 03.02.2005 11:27 UhrUnd in Year steht noch das Feld "Datum" (welches im Anschluß kommt).
pItem ist * auf tItem:
Code: Alles auswählen
typedef struct {
TYPE_File File;
int status;
bool bVideo;
bool bAudio;
bool bText;
bool bDeleted;
dword dwFiles;
dword dwSubDir;
char ServiceName[24];
char EventName[64];
char EventDescription[64];
word duration;
dword LastBlock;
char songTitle[30];
char songInterpreter[30];
char songAlbum[30];
char songYear[4];
char cDate[64];
char cSize[30];
} tItem;
DANKE!


