![]() |
#1 |
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?
|
![]() |
![]() |
![]() |
#2 |
Ben Allison
Former Winamp Developer 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.
|
![]() |
![]() |
![]() |
#3 |
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? |
![]() |
![]() |
![]() |
#4 |
Ben Allison
Former Winamp Developer 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 |
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|