public override RecordingClient CreateClient()
        {
            Factory_WindowsCoreApi.WAVEFORMATEX format;
            Type dataFormat;

            Factory_WindowsCoreApi.IAudioClient IAudioClient = Factory_WindowsCoreApi.CreateClient(_IDevice, out format, out dataFormat);
            return(new RecordingClient_WindowsCoreApi(IAudioClient, format.nChannels, format.nBlockAlign, format.nSamplesPerSec, dataFormat));
        }
Ejemplo n.º 2
0
        public unsafe override PlaybackClient CreateClient(System.IO.Stream Stream)
        {
            Factory_WindowsCoreApi.WAVEFORMATEX format;
            Type dataFormat;

            Factory_WindowsCoreApi.IAudioClient IAudioClient = Factory_WindowsCoreApi.CreateClient(_IDevice, out format, out dataFormat);
            return(new PlaybackClient_WindowsCoreApi(IAudioClient, Stream, format.nChannels, format.nBlockAlign, format.nSamplesPerSec, dataFormat));
        }