Using a blank config directory, in 5.963 on linux, if I make a new track (not record armed) and place this code in there:
Code:
@sample
play_state < 0 ? gotlt0+=1;
play_state == 0 ? got0+=1;
play_state == 1 ? got1+=1;
play_state == 2 ? got2+=1;
play_state == 3 ? got3+=1;
play_state == 4 ? got4+=1;
play_state == 5 ? got5+=1;
play_state == 6 ? got6+=1;
...I see the 0-state counting up. I press play on transport and I see 1-state counting up. I press pause and everything stops counting, and play_state in the debugger sits at 1.
Maybe this is because reaper detects that no audio is streaming through the plugin and effectively stops servicing it to save CPU? (E.g. if the track is record enabled it works as expected and 2-state counts up.)
Are you all seeing differently?
In windows on 5.27 (in a VM) I see the same, with the additional caveat that sometimes the stop state doesn't seem to increase while stopped, and other times it does.