Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
227 B
6
Indexable
Never
% funkcja OpenFile, uzyta w hObj(7)

function [hObj] = OpenFile(hObj)
global y Fs 

filename = uigetfile({'*.wav'},'open');

% audioread(filename,y,Fs);
if filename==0
  return
end
[y,Fs] = audioread(filename);
sound(y,Fs)

end