Re: ID3v2 tags
Re: ID3v2 tags
- Subject: Re: ID3v2 tags
- From: "Marco Papa" <email@hidden>
- Date: Wed, 18 Jun 2008 11:18:34 -0700
Thanks for everybody's reply and pointers to the ID3v2 reference:
and several open source libraries that will do the "tag extraction". There is at least one C++ library that should be easy to link with the Apple frameworks.
Let me then be more specific on what I am trying to do.
I am reading and playing MP3 and AAC audio streams. I connect to the network audio streams using HTTP with CFHTTPMessage and CFReadStream APIs from the Core Foundation (CF Network Interface). My callback handles kCFStreamEventHasBytesAvailable events to get the stream data (after the HTTP headers have been retrieved).
I then parse the network packets to recover the audio packets using Audio File Stream Services APIs. Then I buffer the audio packets and send them to a playback audio queue object using Audio Queue Services APIs. Everything plays just fine.
Audio File Stream Services has the ability to get me "some" metadata (such as the File Format, it being LPCM, MP3, AAC, etc.., and the bit rate), but not much more.
I assume the right place to look and extract the ID3v2 tags would be right at the beginning on the transaction, in response to the kCFStreamEventHasBytesAvailable event, before I pass the stream to Audio File Stream Services. This code would work like a proxy pass-through. Correct?
Thanks for any insight.
-- Marco
On Wed, Jun 18, 2008 at 1:39 AM, Marco Papa <
email@hidden> wrote:
Is there any easy way to extract the frames that contain ID3v2 tags from an MP3 stream using the Core Audio APIs?
Thanks.
--
Marco Papa, Ph.D.
Computer Science Department
University of Southern California
Henry Salvatori Computer Center
Los Angeles, California 90089-0781
Voice: +1-213-974-2137
Cell: +1-310-944-5468
E-mail: email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References: | |
| >ID3v2 tags (From: "Marco Papa" <email@hidden>) |