View Single Post
Old 10-02-2019, 12:19 PM   #37
schwa
Administrator
 
schwa's Avatar
 
Join Date: Mar 2007
Location: NY
Posts: 15,749
Default

The playback offset doesn't use any resources unless it is enabled and nonzero.

Quote:
Originally Posted by heda View Post
I have a track with -2000 samples offset and I run this
Code:
reaper.SetMediaTrackInfo_Value(track, "I_PLAY_OFFSET_FLAG", 0)
because I want to switch it to ms instead of samples. Now the track has -2000000 ms instead of -41.7 ms which is what it should have when I do it from the UI.
If you're changing the units via the API, you'll have to do the conversion yourself and change the value too.
schwa is offline   Reply With Quote