play wav file error
조회 수: 1 (최근 30일)
이전 댓글 표시
when i open a wav file and push play button, it has do nothing. In timer it shows 0.0233107 and when i push stop button, it shows 9.07029e-05. But there is no sound. In axes it plot a signal, i hope it is true.
function Play_Callback(hObject, eventdata, handles)
global pl;
global c;
global t;
global sf;
play(pl);
if isplaying(pl)
pause(pl);
set(handles.Play,'string','Play');
else
resume(pl);
set(handles.Play,'string','Pause');
end
c=get(pl,'Currentsample');
t=get(pl,'Totalsample');
global mydata;
mydata=guidata(handles.text1);
a=timer;
set(a,'executionMode','fixedRate');
set(a,'TimerFcn','myfunction','Period',0.1);
start(a);
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File 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!