cant seem to make reaper play from API calls
auto SetPlayState = [=](bool play, bool stop)
{
if(play)
{
//OnPlayButton();
CSurf_OnPlay();
//IReaperControlSurface* ignoresurf;
//CSurf_SetPlayState(true, false, false, ignoresurf);
}
else if(stop)
{
//OnStopButton();
CSurf_OnStop();
//IReaperControlSurface* ignoresurf;
//CSurf_SetPlayState(false, false, false, ignoresurf);
}
};
I've tried these 3 different ways, OnPlayButton() and CSurf_OnPlay() will start the project playing but no audio will be heard. CSurf_SetPlayState() does nothing. I call the function on the main thread. What am I doing wrong?
|