예제 #1
0
 /// <summary>
 /// Event handler for processing audio samples from the audio channel.
 /// </summary>
 /// <param name="sample">The audio sample ready for transmission.</param>
 public void AudioChannelSampleReady(byte[] sample)
 {
     if (_rtpAudioChannel.RemoteEndPoint != null)
     {
         _rtpAudioChannel.SendAudioFrame(sample, 160, (int)SDPMediaFormatsEnum.PCMU);
     }
 }