Exemple #1
0
        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();
        }
Exemple #3
0
        public async Task InitializeAsync()
        {
            client.ActivateAsync(M.MAudioDeviceType.Capture);

            await initialized.Task;

            format = client.MixFormat;

            await Task.Run(() => ClientInitialize());
        }
Exemple #4
0
 internal MAudioFormat(M.MWaveFormat format)
 {
     EncodingType     = (MAudioEncodingType)format.FormatType;
     NumberOfChannels = format.NumberOfChannels;
     SampleRate       = format.SampleRate;
 }