Ejemplo n.º 1
0
        public NetworkAudioPlayer(IAudioClient receiver)
        {
            this.receiver = receiver;
            decoder       = OpusDecoder.Create(48000, 2);
            receiver.SetReceived(OnDataReceived);

            waveOut      = new WaveOut();
            waveProvider = new BufferedWaveProvider(new WaveFormat(48000, 16, 2));
            waveOut.Init(waveProvider);
            waveOut.Play();
        }