Esempio n. 1
0
        protected virtual void OnMixerAudioChannelsCountChanged(OscMessage message)
        {
            var channelId = message.GetChannel();

            if (channelId == null)
            {
                return;
            }
            var channelsCount = Convert.ToInt32(message.ElementAtOrDefault(0));

            MixerAudioChannelsCountChanged?.Invoke(this, new MixerAudioChannelsCountEventArgs(channelsCount, channelId.Value));
        }
Esempio n. 2
0
        protected virtual void OnMixerAudioDbfsChanged(OscMessage message)
        {
            var channelId = message.GetChannel();

            if (channelId == null)
            {
                return;
            }
            var dbfs = (float)(message.ElementAtOrDefault(0));

            MixerAudioDbfsChanged?.Invoke(this, new MixerAudioDbfsEventArgs(dbfs, channelId.Value));
        }
Esempio n. 3
0
        protected virtual void OnProfilerTimeChanged(OscMessage message)
        {
            var channel = message.GetChannel();

            if (channel == null)
            {
                return;
            }

            var currentValue  = (float)(message.ElementAtOrDefault(0));
            var expectedValue = (float)(message.ElementAtOrDefault(1));

            ProfilerTimeChanged?.Invoke(this, new ProfilerTimeEventArgs(currentValue, expectedValue, channel.Value));
        }
Esempio n. 4
0
        protected virtual void OnOutputTypePortChanged(OscMessage message)
        {
            var channel = message.GetChannel();

            if (channel == null)
            {
                return;
            }

            var type = message.ElementAtOrDefault(0)?.ToString();
            var port = message.GetNextAddressPartOf(Port).TryParseNullable();

            OutputPortChanged?.Invoke(this, new OutputPortTypeEventArgs(type, port.GetValueOrDefault(0), channel.Value));
        }
Esempio n. 5
0
        protected virtual void OnOutputFormatChanged(OscMessage message)
        {
            var channel = message.GetChannel();

            if (channel == null)
            {
                return;
            }

            var format = message.ElementAtOrDefault(0)?.ToString();


            OutputFormatChanged?.Invoke(this, new OutputFormatEventArgs(format, channel.Value));
        }
Esempio n. 6
0
        protected virtual void OnConsumerFrameCreatedChanged(OscMessage message)
        {
            var channel = message.GetChannel();

            if (channel == null)
            {
                return;
            }

            var usedFrames      = Convert.ToInt32(message.ElementAtOrDefault(0));
            var availableFrames = Convert.ToInt32(message.ElementAtOrDefault(1));
            var port            = message.GetNextAddressPartOf(Port).TryParseNullable();

            ConsumerFrameCreatedChanged?.Invoke(this, new ConsumerFrameCreatedEventArgs(usedFrames, availableFrames, port.GetValueOrDefault(0), channel.Value));
        }