Only one channel from two-channel Behringer UCA202
이전 댓글 표시
I have been trying to get both audio channels to come from my Behringer UCA202. What I get is the same channel duplicated in two columns the received vector.
I am running R2022a in Win7 and Win10.
I am running the quick example "AudioStreamFromDeviceToDeviceExample.mlx" from the audio toolbox.
I have tried to set up the UCA202 device with these various commands, but none gave a distinct pair of channels. In the case of ASIO, I have also used asiosettings.
% deviceReader = audioDeviceReader; % this gives a single vector output
deviceReader = audioDeviceReader('NumChannels',2);
% deviceReader = audioDeviceReader('SampleRate',16000,'Driver','ASIO');
% deviceReader = audioDeviceReader('Driver','ASIO','NumChannels',2);
% deviceReader = audioDeviceReader('Driver','ASIO','Device','ASIO4ALL v2','NumChannels',2);
% deviceReader = audioDeviceReader('Driver','WASAPI','NumChannels',2);
Elsewhere in this forum, someone has used the UCA202.
Regards,
-Joe
답변 (1개)
Jimmy Lapierre
2022년 5월 3일
편집: Jimmy Lapierre
2022년 5월 3일
0 개 추천
1. Try specifying the name of the device as well, in case you are picking up another (mono) device instead of you UCA202.
>> audioDeviceReader('Device','Name of my device')
2. Make sure there are no "mono" switches on the device or in asiosettings.
3. Also try an alternate method, using channel mapping:
>> audioDeviceReader('ChannelMappingSource','Property','ChannelMapping',1:2)
댓글 수: 16
Joseph Sousa
2022년 5월 3일
Jimmy Lapierre
2022년 5월 4일
Another suggestion would be to try audiorecorder as well
Joseph Sousa
2022년 5월 4일
Jimmy Lapierre
2022년 5월 4일
The ASIO4ALL driver is only a "wrapper", so it is not the most reliable. That being said, if you want to both read and write, I highly recommend using audioPlayerRecorder to make sure you get proper full duplex operation (it uses ASIO on Windows by default). You'll also want to use the same sample rate as you have set in the driver (48k instead of 32k). I also recommend specifying the "Device" property to be on the safe side.
Joseph Sousa
2022년 5월 5일
Jimmy Lapierre
2022년 5월 5일
Thanks for the update. And for the Surface, is it not working because it's not keeping up? You can check the extra output of the read/write functions to check for dropouts.
Joseph Sousa
2022년 5월 6일
Joseph Sousa
2022년 5월 6일
Jimmy Lapierre
2022년 5월 6일
The default device is probably the onboard mono microphone on your laptop. Please specify the name of the device you want to use (should appear with autocomplete after typing 'Device',[tab] or with getAudioDevices(deviceReader)', with deviceReader Driver property set to what you want to use).
Joseph Sousa
2022년 5월 6일
Jimmy Lapierre
2022년 5월 6일
I was not aware of this limitiation with DirectSound, I will take good note of this and see if we can improve this in the future.
With a manufacturer ASIO driver (maybe not ASIO4ALL) and audioDeviceReader set to ASIO, I do not expect this to happen.
Joseph Sousa
2022년 5월 6일
Jimmy Lapierre
2022년 5월 7일
Do you use WASAPI or Direct Sound with Reaper? I think reaper can do exclusive WASAPI, and we do shared WASAPI, so that might explain why the Windows settings matter.
Joseph Sousa
2022년 5월 7일
Jimmy Lapierre
2022년 5월 9일
Would you mind verifying if you have the same issue with audiorecorder? That way I can make sure the right team looks more deeply into this.
Joseph Sousa
2022년 5월 10일
카테고리
도움말 센터 및 File Exchange에서 Measurements and Spatial Audio에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!