Problem playing audiofile from UI.
Ältere Kommentare anzeigen
Hi, I´m coding a simple button to reproduce an audio file on the UI. There seems to be a problem because it will analyze the audio but does not reproduce it. Eventhough if I run the same code on a empty matlab project without UI it will play. What is missing or what is the problem with the UI?
function pushbutton1_Callback(hObject, eventdata, handles)
[a, fs]=audioread('909.wav')
p=audioplayer(a,fs)
play(p)
Akzeptierte Antwort
Weitere Antworten (1)
Temirkhan Amanzhanov
am 1 Jun. 2020
0 Stimmen
I have the same problem in App Designer. Could you help me please?
Kategorien
Mehr zu Audio and Video Data finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!