libZPlay documentation (Win32)
IndexReferenceHome
PreviousUpNext
libZPlayCpp::zplay_LoadID3W Function

Load ID3 data from current stream. (UNICODE version)

C++
__stdcall __declspec(dllimport) int zplay_LoadID3W(ZPLAY_HANDLE handle, TID3Version nId3Version, TID3InfoW * pId3Info);
Parameters 
Description 
ZPLAY_HANDLE handle 
ZPLAY handle. Get this handle with zplay_CreateZPlay
TID3Version nId3Version 
ID3 version.
Note: This value is only used for sfMp3 stream format. For all other stream formats this parameter is ignored. 
TID3InfoW * pId3Info 
Pointer to TID3InfoW structure receiving ID3 data. User must allocate memory for this structure. 
Return Values 
Description 
All OK. 
Error. To get error message read here

Check supported formats for info tag support. Some formats can support some sort of "Info tags", but not all. 

libZPlay library implements "ID3 tag" interface to different info tags (VORBIS comment, RIFF Info, ...). So, you can retrieve ID3 informations from different streams (mp3, ogg, flac, wav) because library will convert "format specific tag" to ID3 tag info. 

Note: If you juste need ID3 data from file, use LoadFileID3W or zplay_LoadFileID3W

Load ID3 info from current stream. 

ZPlay C++ Class interface  

TId3InfoW id3_info;
if(instance->LoadID3W(id3Version2, &id3_info))
{
  wprintf(L"Title:   %s\n", id3_info.Title);
  wprintf(L"Artist:  %s\n", id3_info.Artist);
  wprintf(L"Album:   %s\n", id3_info.Album);
  wprintf(L"Year:    %s\n", id3_info.Year);
  wprintf(L"Comment: %s\n", id3_info.Comment);
  wprintf(L"Genre:   %s\n", id3_info.Genre);
  wprintf(L"Track:   %s\n", id3_info.TrackNum);
}

 

C Style interface

TId3InfoW id3_info;
if(zplay_LoadID3W(instance, id3Version2, &id3_info))
{
  wprintf(L"Title:   %s\n", id3_info.Title);
  wprintf(L"Artist:  %s\n", id3_info.Artist);
  wprintf(L"Album:   %s\n", id3_info.Album);
  wprintf(L"Year:    %s\n", id3_info.Year);
  wprintf(L"Comment: %s\n", id3_info.Comment);
  wprintf(L"Genre:   %s\n", id3_info.Genre);
  wprintf(L"Track:   %s\n", id3_info.TrackNum);
}
Copyright (c) 2010. Zoran Cindori - All rights reserved.

Web: http://libzplay.sourceforge.net/

Email: zcindori@inet.hr