Пример #1
0
 private AudioInput(IMediaRecorder recorder, IClock clock, GameObject gameObject, bool mute = false)
 {
     this.recorder   = recorder;
     this.clock      = clock;
     this.attachment = gameObject.AddComponent <AudioInputAttachment>();
     this.attachment.sampleBufferDelegate = OnSampleBuffer;
     this.mute = mute;
 }
Пример #2
0
 public void Dispose() => AudioInputAttachment.Destroy(attachment);
Пример #3
0
 public void Dispose()
 {
     attachment.sampleBufferDelegate = null;
     AudioInputAttachment.Destroy(attachment);
 }