View Single Post
Old 01-31-2018, 12:46 PM   #314
Xenakios
Human being with feelings
 
Xenakios's Avatar
 
Join Date: Feb 2007
Location: Oulu, Finland
Posts: 8,062
Default

Quote:
Originally Posted by fundorin View Post
Yep. Works too. I was confused, at first, because requesting volume or pan states for non-existing tracks wasn't leading to crash.
Don't expect that the Reaper API functions are that consistent. Many of them do null pointer/invalid object checks for you, but some won't, so it's best to also do at least null pointer checks yourself too. (Unless you know the API tolerates passing in null pointers or other invalid values.)
__________________
I am no longer part of the REAPER community. Please don't contact me with any REAPER-related issues.
Xenakios is offline   Reply With Quote