Exemplo n.º 1
0
 private void OnAudioMixerFrame(AudioBuffer echoMixed)
 {
     if (IsSupported)
     {
         AcousticEchoCanceller.Render(echoMixed.Data, echoMixed.Index, echoMixed.Length);
     }
 }
Exemplo n.º 2
0
 public OpusEchoCanceller(int clockRate, int channels)
 {
     if (IsSupported)
     {
         AcousticEchoCanceller = new AcousticEchoCanceller(clockRate, channels, 300);
         AudioMixer            = new AudioMixer(clockRate, channels, 20);
         AudioMixer.OnFrame   += OnAudioMixerFrame;
     }
 }
Exemplo n.º 3
0
 public byte[] capture(AudioBuffer input)
 {
     if (IsSupported)
     {
         return(AcousticEchoCanceller.Capture(input.Data, input.Index, input.Length));
     }
     else
     {
         return(BitAssistant.SubArray(input.Data, input.Index, input.Length));
     }
 }
Exemplo n.º 4
0
 public byte[] Capture(AudioBuffer input)
 {
     return(AcousticEchoCanceller.Capture(input.Data, input.Index, input.Length));
 }