private void InitializeCaptureDevice(IAudioClient audioClientInterface) | |
{ | |
var audioClient = new AudioClient((IAudioClient)audioClientInterface); | |
if (waveFormat == null) | |
{ | |
var mix = audioClient.MixFormat; | |
if (mix is WaveFormatExtensible) | |
{ | |
if (mix.BitsPerSample == 32) | |
{ | |
waveFormat = WaveFormat.CreateIeeeFloatWaveFormat(mix.SampleRate, mix.Channels); | |
} | |
else | |
{ | |
waveFormat = new WaveFormat(mix.SampleRate, mix.BitsPerSample, mix.Channels); | |
} | |
} | |
} | |
: | |
: | |
: | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment