コード例 #1
0
        private void PlatformPause()
        {
            if (!HasSourceId || SoundState != SoundState.Playing)
            {
                return;
            }

            if (!controller.CheckInitState())
            {
                return;
            }

            if (pauseCount == 0)
            {
                AL.SourcePause(SourceId);
                ALHelper.CheckError("Failed to pause source.");
            }
            ++pauseCount;
            SoundState = SoundState.Paused;
        }