public async Task InitializeAsync(MAudioFormat format) { client.ActivateAsync(M.MAudioDeviceType.Capture); await initialized.Task; this.format = client.IsFormatSupported(M.MAudioClientShareMode.Shared, format.MWASAPIFormat); await Task.Run(() => ClientInitialize()); }
public async Task InitializeAsync() { client.ActivateAsync(M.MAudioDeviceType.Render); await initialized.Task; format = client.MixFormat; ClientInitialize(); }
public async Task InitializeAsync() { client.ActivateAsync(M.MAudioDeviceType.Capture); await initialized.Task; format = client.MixFormat; await Task.Run(() => ClientInitialize()); }
internal MAudioFormat(M.MWaveFormat format) { EncodingType = (MAudioEncodingType)format.FormatType; NumberOfChannels = format.NumberOfChannels; SampleRate = format.SampleRate; }