Пример #1
0
    def is_playing(self):
        """
        Return whether project is playing.

        :type: bool
        """
        return bool(RPR.GetPlayStateEx(self.id) & 1)
Пример #2
0
    def is_recording(self):
        """
        Return whether project is recording.

        :type: bool
        """
        return bool(RPR.GetPlayStateEx(self.id) & 4)
Пример #3
0
    def is_paused(self):
        """
        Return whether project is paused.

        :type: bool
        """
        return bool(RPR.GetPlayStateEx(self.id) & 2)
Пример #4
0
    def play_state(self):
        """
        Project play state ("play", "pause" or "record").

        :type: str
        """
        states = {1: "play", 2: "pause", 4: "record"}
        state = states[RPR.GetPlayStateEx(self.id)]
        return state