public SpeakerOutputChannel() : base(null) { var mainDevice = AudioEngineHelper.GetMainDevice(); ChannelId = ChannelHelper.InitializeOutputChannel(mainDevice.Id); }
public MonitorOutputChannel() : base(null) { var monitorDevice = AudioEngineHelper.GetMonitorDevice() ?? AudioEngineHelper.GetMainDevice(); ChannelId = ChannelHelper.InitializeMixerChannel(); var info = Bass.BASS_GetInfo(); var streamCopy = new DSP_StreamCopy { OutputLatency = info.latency, ChannelHandle = ChannelId, DSPPriority = -1000, StreamCopyDevice = monitorDevice.Id }; streamCopy.StreamCopyFlags = streamCopy.ChannelInfo.flags; streamCopy.Start(); }