Skip to content

Instantly share code, notes, and snippets.

@olokobayusuf
Last active February 15, 2020 22:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save olokobayusuf/1e3dadf18a74d44eed00512f429b8e8c to your computer and use it in GitHub Desktop.
Save olokobayusuf/1e3dadf18a74d44eed00512f429b8e8c to your computer and use it in GitHub Desktop.
The fundamental audio device interface in NatDevice, which all audio devices implement.
/// <summary>
/// Audio device which provides sample buffers.
/// </summary>
public interface IAudioDevice : IMediaDevice {
/// <summary>
/// Audio sample rate.
/// </summary>
int sampleRate { get; }
/// <summary>
/// Audio channel count.
/// </summary>
int channelCount { get; }
/// <summary>
/// Start running.
/// </summary>
/// <param name="@delegate">Delegate to receive sample buffers.</param>
void StartRunning (SampleBufferDelegate @delegate);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment