Old 31st January 2007, 15:41   #1
Tardymo
Member
 
Join Date: Sep 2006
Posts: 89
Track length in milliseconds

Is there a way to read a track length in ms? IPC_GETOUTPUTTIME returns seconds (using mode 1). How does Winamp read the length anyway? Does it use the information from meta data found in audio files?
Tardymo is offline   Reply With Quote
Old 31st January 2007, 15:51   #2
Benski
Ben Allison
Former Winamp Developer
 
Benski's Avatar
 
Join Date: Jan 2005
Location: Brooklyn, NY
Posts: 1,057
probably best to use IPC_GET_EXTENDED_FILE_INFO (or IPC_GET_EXTENDED_FILE_INFOW) and query for the "length" metadata.
Benski is offline   Reply With Quote
Old 31st January 2007, 16:00   #3
Tardymo
Member
 
Join Date: Sep 2006
Posts: 89
Thanks, IPC_GET_EXTENDED_FILE_INFO does the trick.
But then, do all file types support the "length" metadata? Where can I find a list of metadata fields I can query using IPC_GET_EXTENDED_FILE_INFO?
Tardymo is offline   Reply With Quote
Old 31st January 2007, 16:57   #4
Benski
Ben Allison
Former Winamp Developer
 
Benski's Avatar
 
Join Date: Jan 2005
Location: Brooklyn, NY
Posts: 1,057
It's up to each input plugin to support the tags.

Here's a thread where I've posted the metadata that in_mp3 supports:

http://forums.winamp.com/showthread....61#post2038561
Benski is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > Winamp Development

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump