How can I record a Behringer UCG102 Guitar Link, an ASIO device, with audio toolbox

조회 수: 3 (최근 30일)
Hello,
I'm trying to read out the input signal of a Behringer UCG102 Guitar Link using the audio toolbox.
This is what I've done so far:
asiosettings() % opens the asiodriver UI
pause
deviceReader = audioDeviceReader();
devices = getAudioDevices(deviceReader);
deviceReader.Driver = 'asio'; %'DirectSound','WASAPI','asio'
deviceReader.Device = 'BEHRINGER USB AUDIO';%'defaulu audio device','BEHRINGER USB AUDIO','ASIO4ALL v2'
deviceReader.NumChannels = 2;
deviceReader.SamplesPerFrame = 1024;
deviceReader.SampleRate = 44100;
deviceReader.BitDepth = '16-bit integer'; %'16-bit integer','8-bit integer','32-bit float','24-bit integer'
deviceReader.ChannelMappingSource = 'Auto'; % 'Auto','Property'
deviceReader.ChannelMapping = [1,1];
deviceReader.OutputDataType = 'double';
setup(deviceReader);
[AUDIO, NUMOVERRUN] = record(deviceReader);
audioFromDevice = deviceReader();
Each of the last two lines should return a Matrix with one Frame of each Channel, if I'm not mistaken. And they actually return a 1024x2-matrix, but they both contain just a noise signal. Can somebody point out where my mistake is?
Thank you.
Peter

답변 (0개)

카테고리

Help CenterFile Exchange에서 Audio I/O and Waveform Generation에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by