PortAudio Error: Internal PortAudio error

I am getting PortAudio Error: Internal PortAudio error, running an audio example >> audioTestBench('audiopluginexample.Echo')
Run Audio Test Bench on Mac.
Attempted changing output device, same error.

댓글 수: 5

Data point: that example works for me on my MacOS Catalina system.
Jimmy Eadie
Jimmy Eadie 2021년 8월 28일
편집: Walter Roberson 2021년 8월 28일
Tried simple audioread:
[data1, fs1] = audioread('OH.mp3');
sound(data1,fs1)
%plot(data1)
>> Phase Error using sound (line 79)
Device Error: Internal Device error
Error in Phase (line 8)
sound(data1,fs1)
What about if you
sound(rand(1,1000))
... On the off chance that fs1 from the file is not compatible.
Jimmy Eadie
Jimmy Eadie 2021년 8월 29일
편집: Jimmy Eadie 2021년 8월 29일
Thanks for the suggestion I appreciate it. I am using an external interface FF800 > thuderbolt. I then changed the internal sound to the Mac speakers in the hope this was the problem. Off/On reboots many times, then updated Matlab. The probelm started when I opened the audio test bench and tried to play a file, since then no audio will play. The sample rate of fs1 is 44100
Same error,
Error using sound (line 79)
Device Error: Internal Device error
When I check line 79,
play(playerObj(end));
catch exception
throw(exception);
end
Jimmy Eadie
Jimmy Eadie 2021년 8월 29일
편집: Jimmy Eadie 2021년 8월 29일
So I took the nucleur option and uninstalled version 2020 and installed version R2021a. Using the just the mac audio. Attempted to load the handel.mat file same error:
>> sound(y,Fs);
Error using sound (line 79)
Device Error: Internal Device error
So just tried this:
>> deviceWriter = audioDeviceWriter;
>> info(deviceWriter)
ans =
struct with fields:
Driver: 'CoreAudio'
DeviceName: 'MacBook Pro Speakers'
MaximumOutputChannels: 2
>> sineGenerator = audioOscillator;
>> count = 0;
while count < 500
sine = sineGenerator();
deviceWriter(sine);
count = count + 1;
end
Error using audioDeviceWriter/setup
PortAudio Error: Internal PortAudio error
Error in audioDeviceWriter/setupImpl

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Audio I/O and Waveform Generation에 대해 자세히 알아보기

제품

릴리스

R2020b

질문:

2021년 8월 28일

편집:

2021년 8월 29일

Community Treasure Hunt

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

Start Hunting!

Translated by