Hi. I am writing plugin, and in my process block I need to get the information, if the DAW track is playing or not. How can I do this?
You can use the AudioPlayHead struct here: AudioPlayHead::CurrentPositionInfo
HTH
1 Like
Yeah, I do this, but it doesn`t work
here is my code
getPlayHead()->getCurrentPosition(info);
if (info.isPlaying)
{
...
}
and when the hosts track plays, the if
s body doesn`t execute
what`s wrong?
The host may not be providing that information. Which host is it?
Sonar