Old 22nd January 2013, 02:57   #1
jrpx
Junior Member
 
Join Date: Jan 2013
Posts: 3
Looking to do time-based operations

Hello Folks,

I'm looking to do a plugin that needs the song's current playtime position, just any number at all as an indicator. Can the SDK do this? Thanks

Edit: ideally a unit of time that's at least 1/100th of a second, or can calculate down to it
jrpx is offline   Reply With Quote
Old 23rd January 2013, 02:03   #2
jrpx
Junior Member
 
Join Date: Jan 2013
Posts: 3
I couldn't edit my old message, so I would like to clarify: I want to do this in C++
jrpx is offline   Reply With Quote
Old 23rd January 2013, 02:21   #3
DrO
 
Join Date: Sep 2003
Posts: 27,873
IPC_GETOUTPUTTIME (from wa_ipc.h) is the most appropriate api to look at and it can work in milliseconds but it depends a lot on the input plug-in / file type being played as to how accurate that is going to be.

-daz
DrO is offline   Reply With Quote
Old 23rd January 2013, 02:42   #4
jrpx
Junior Member
 
Join Date: Jan 2013
Posts: 3
That will do nicely. It looks like I'll have to poll it.
jrpx 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