RPR GetPlayStateEx

From CockosWiki

(Redirected from RPR GetPlayState)
Jump to: navigation, search

Main Page > REAPER Documentation > ReaScript > ReaScript API, Functions > RPR GetPlayStateEx
Main Page > REAPER Documentation > REAPER API > REAPER API Functions > RPR GetPlayStateEx

Contents

GetPlayState()

int GetPlayState()
int GetPlayStateEx(void* proj)

GetPlayState() returns an integer value representing the project play state. 1=play, 2=paused, 5=recording, 6=record paused.????

Conflicting documentation, please document the correct values if you can.

Parameters

void* proj

Returns

int, &1 is playing, &2 is pause, &4 is recording????

Examples

C++

void ZoomSlice()
{
	if (g_bSmoothScroll && GetPlayState() & 1)
		PCursorTo50();
}

Perl

 

Python

 

See Also

play: Master_GetPlayRateAtTime, CSurf_OnPlay, GetPlayPosition, GetPlayPosition2, CSurf_SetPlayState, GetPlayPosition2Ex, GetPlayPositionEx, OnPlayButton, GetPlayState, OnPlayButtonEx, GetPlayStateEx, PlayPreview, PlayTrackPreview, PlayTrackPreview2,

(Section automatically generated, edits may be overwritten.)

Stuff

Main Page > REAPER Documentation > ReaScript > ReaScript API, Functions > RPR GetPlayStateEx
Main Page > REAPER Documentation > REAPER API > REAPER API Functions > RPR GetPlayStateEx

Personal tools