Borrar filtros
Borrar filtros

play wav file error

1 visualización (últimos 30 días)
The
The el 19 de Mzo. de 2013
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);

Respuestas (0)

Categorías

Más información sobre Audio I/O and Waveform Generation en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by