RPR GetPlayStateEx

From CockosWiki

(Difference between revisions)
Jump to: navigation, search
(Examples)
(C++)
 
Line 14: Line 14:
===C++===
===C++===
<source lang=cpp>
<source lang=cpp>
 +
void ZoomSlice()
 +
{
 +
if (g_bSmoothScroll && GetPlayState() & 1)
 +
PCursorTo50();
 +
}
</source>
</source>
 +
===Perl===
===Perl===
<source lang=perl>
<source lang=perl>

Latest revision as of 22:25, 11 February 2010

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