Ejemplo n.º 1
0
        //채널 솔로 활성화 & 비활성화
        public void ToggleSolo(MixerChannel CurrentChannel)
        {
            if (!CurrentChannel.IsSolo)
            {
                foreach (MixerChannel c in MixerChannels)
                {
                    c.IsMuted = true;
                    c.IsSolo  = false;
                }
                CurrentChannel.IsMuted = false;
                CurrentChannel.IsSolo  = true;
            }
            else
            {
                foreach (MixerChannel c in MixerChannels)
                {
                    c.IsMuted = false;
                    c.IsSolo  = false;
                }
            }

            if (!CurrentChannel.IsMaster)
            {
                MixerChannels[0].IsMuted = false;
            }
        }
Ejemplo n.º 2
0
        private MixerManager()
        {
            MixerChannel master = new MixerChannel("마스터", true);

            MixerChannels[0] = master;

            AudioManager.Instance.AddMixerInput(master.ChannelOut);

            for (int i = 1; i < 100; i++)
            {
                MixerChannels[i] = new MixerChannel($"채널 {i}");
            }

            AudioManager.Instance.OutputDeviceChanged += AudioOutputDeviceChanged;
        }