Old 7th August 2015, 15:00   #1
thinktink
Forum King
 
thinktink's Avatar
 
Join Date: May 2009
Location: On the streets of Kings County, CA.
Posts: 2,930
Send a message via Skype™ to thinktink
RG Calc and File conversion

I believe I have finally eliminated all the crash issues in a plugin I've been updating for the past 6 months and I'm fleshing out the features of it. I would like the ability to invoke the RG Calculator and the Format converter dialogs from within the API, is this possible?
thinktink is offline   Reply With Quote
Old 17th August 2015, 04:40   #2
Benski
Ben Allison
Former Winamp Developer
 
Benski's Avatar
 
Join Date: Jan 2005
Location: Brooklyn, NY
Posts: 1,047
You could invoke them through the "Send To" API.
Benski is offline   Reply With Quote
Old 17th August 2015, 04:40   #3
Benski
Ben Allison
Former Winamp Developer
 
Benski's Avatar
 
Join Date: Jan 2005
Location: Brooklyn, NY
Posts: 1,047
There's also APIs for both of these pieces of functionality if you want to do the UI yourself
Benski is offline   Reply With Quote
Old 19th September 2015, 18:44   #4
thinktink
Forum King
 
thinktink's Avatar
 
Join Date: May 2009
Location: On the streets of Kings County, CA.
Posts: 2,930
Send a message via Skype™ to thinktink
Quote:
Originally Posted by Benski View Post
You could invoke them through the "Send To" API.
I see the Send To API implementation but I'm just not seeing invocation. Is there a central invocation API or do I need a kludge? Do I have to manually enumerate ml plugin files?
thinktink is offline   Reply With Quote
Old 19th September 2015, 19:18   #5
Benski
Ben Allison
Former Winamp Developer
 
Benski's Avatar
 
Join Date: Jan 2005
Location: Brooklyn, NY
Posts: 1,047
So there is an API (obj_replaygain) that exists for the cd ripper to do replay gain calculation. however it doesn't have a UI. It does perform all the calculations and write the metadata.

As for invoking the UI, the most direct way is to call ml_rg's PluginMessageProc directly.
with
code:

message_type == ML_MSG_ONSENDTOSELECT
param3 == PluginMessageProc // ml_rg's message procedure pointer


ml_rg accepts the following data types
  • ML_TYPE_ITEMRECORDLIST
  • ML_TYPE_ITEMRECORDLISTW
  • ML_TYPE_FILENAMES
  • ML_TYPE_PLAYLIST
  • ML_TYPE_PLAYLISTS

Hope that helps. sorry there isn't something better!
Benski is offline   Reply With Quote
Old 19th September 2015, 19:28   #6
thinktink
Forum King
 
thinktink's Avatar
 
Join Date: May 2009
Location: On the streets of Kings County, CA.
Posts: 2,930
Send a message via Skype™ to thinktink
Quote:
Originally Posted by Benski View Post
...

As for invoking the UI, the most direct way is to call ml_rg's PluginMessageProc directly.
with
/code
message_type == ML_MSG_ONSENDTOSELECT
param3 == PluginMessageProc // ml_rg's message procedure pointer
/code
ml_rg accepts the following data types
* ML_TYPE_ITEMRECORDLIST
* ML_TYPE_ITEMRECORDLISTW
* ML_TYPE_FILENAMES
* ML_TYPE_PLAYLIST
* ML_TYPE_PLAYLISTS

Hope that helps. sorry there isn't something better!
Works!

Thanks for the uber-fast response.
thinktink 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