Go Back   Cockos Incorporated Forums > REAPER Forums > ReaScript, JSFX, REAPER Plug-in Extensions, Developer Forum

Reply
 
Thread Tools Display Modes
Old 08-16-2017, 08:05 AM   #1
nofish
Human being with feelings
 
nofish's Avatar
 
Join Date: Oct 2007
Location: home is where the heart is
Posts: 12,096
Default Is there a SWS ReaScript API that returns more than one value ?

With native API functions we have for example:

Quote:
Lua: boolean retval, number volume, number pan = reaper.GetTrackUIVolPan(MediaTrack track)
Does exist any SWS API function also that returns more than one value ?

(I want to have a peek at the code but so far haven't found any.)
nofish is offline   Reply With Quote
Old 08-16-2017, 08:16 AM   #2
cfillion
Human being with feelings
 
cfillion's Avatar
 
Join Date: May 2015
Location: Québec, Canada
Posts: 4,937
Default

Here's some:

BR_EnvGetPoint
BR_EnvGetProperties
BR_GetMediaItemImageResource
BR_GetMediaSourceProperties
BR_GetMediaTrackLayouts
BR_GetMidiTakePoolGUID
BR_GetMouseCursorContext

C doesn't have multiple return values so in the code it's pointers parameters whose name in the help text ends with "Out". REAPER detects those to produce multiple return values (the actual return value + xyzOut parameters) when the function is called from Lua.

Last edited by cfillion; 08-16-2017 at 10:56 AM. Reason: that -> those
cfillion is offline   Reply With Quote
Old 08-16-2017, 08:48 AM   #3
nofish
Human being with feelings
 
nofish's Avatar
 
Join Date: Oct 2007
Location: home is where the heart is
Posts: 12,096
Default

That was helpful, thanks.
nofish is offline   Reply With Quote
Reply

Thread Tools
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


All times are GMT -7. The time now is 03:08 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.