フィルターのクリア

play wav file error

1 回表示 (過去 30 日間)
The
The 2013 年 3 月 19 日
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 件)

カテゴリ

Help Center および File ExchangeAudio 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