How to get info from DAW


#1

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?


#2

You can use the AudioPlayHead struct here: AudioPlayHead::CurrentPositionInfo

HTH


#3

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 ifs body doesn`t execute

what`s wrong?


#4

The host may not be providing that information. Which host is it?


#5

Sonar