Commit 5d70b6e9 authored by Günter Windau's avatar Günter Windau

added lsldert_audio03.m

parent 2ce03460
client=lsldert_audioclient('raspi6');
for ii=1:10
%fnii=sprintf('%d.wav',ii);
client.load(ii,'mariobiondi.mp3', [18 20]*44100);
end
for jj=1:1
for ii=1:10
client.play(ii);
pause(3);
client.stop(ii);
end
end
%input('press enter >>>>');
delete(client);
......@@ -15,14 +15,14 @@ classdef lsldert_audioclient < lsldert_pubclient
this@lsldert_pubclient(varargin{:});
end
function load(this,bufferno, filename)
function load(this,bufferno, varargin)
if (bufferno < 0) || (bufferno > this.maxbuf)
ME = MException('lsldert_audioclient.load',...
'bufferno must be >=0 and <%d',...
this.maxbuf);
throw(ME);
end
[pcm_data,Fs]=audioread(filename);
[pcm_data,Fs]=audioread(varargin{:});
nsamp=max(size(pcm_data));
nchan=min(size(pcm_data));
pcm_header=uint32([Fs, nchan, nsamp, 0, 0, 0]);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment