Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER Bug Reports

Reply
 
Thread Tools Display Modes
Old 03-03-2023, 01:28 PM   #1
brummbear
Human being with feelings
 
brummbear's Avatar
 
Join Date: May 2016
Location: out west
Posts: 301
Default SetMediaTrackInfo_Value not working with "I_FREEMODE"

Tested with Reaper v6.77, lua (did not check C or EEL API)

According to API doc SetMediaTrackInfo_Value should react to parameter name "I_FREEMODE" just like GetMediaTrackInfo_Value does (the latter works properly).

However, SetMediaTrackInfo_Value only reacts to the deprecated "B_FREEMODE" parameter name. Ironically it expects a double / number / float, not a boolean.

The deprecated GetSetMediaTrackInfo which used "B_FREEMODE" did expect a boolean value and I assume it probably still works for legacy reasons (I hope but haven't tested).

=> most likely this is just a trivial error when SetMediaTrackInfo_Value and GetMediaTrackInfo_Value were introduced. SetMediaTrackInfo_Value already works with the numbered logic including the upcoming track lanes feature but the parameter string seemingly was not updated to "I_FREEMODE" and got "B_FREEMODE" instead.


Code:
-- this works to unset Free Item Positioning
reaper.SetMediaTrackInfo_Value(track, "B_FREEMODE", 0)

-- this do not work (but should be the correct way)
reaper.SetMediaTrackInfo_Value(track, "I_FREEMODE", 0)

--these do not work either (just to test nature of bug :-)
reaper.SetMediaTrackInfo_Value(track, "I_FREEMODE", false)
reaper.SetMediaTrackInfo_Value(track, "B_FREEMODE", false)
brummbear 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 12:37 AM.


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