コード例 #1
0
        private void SetPeakLevel(PeakLevelEventArgs args)
        {
            var level = Math.Round(args.Level, 3);

            if (level != _previousLevel)
            {
                _previousLevel = level;
                _webSocketServer.Send("peakAudioLevel", level.ToString(CultureInfo.InvariantCulture));
            }
        }
コード例 #2
0
        private void SendCleanupState()
        {
            var endState = "{\"CanAddPages\":false,\"CanDeletePage\":false,\"CanDuplicatePage\":false,\"BookLockedState\":\"OriginalBookMode\"}";

            _webSocketServer.Send(kWebsocketStateId, endState);
        }
コード例 #3
0
 private void SetState(string state)
 {
     _webSocketServer.Send(kWebsocketStateId, state);
 }