Commit d3a347df authored by Martin Karlsson's avatar Martin Karlsson
Browse files

intriail

parents
allAudio = [];
lastLastIndex = 0;
lastIndex = 0;
count = 0;
while count < 10
p = bass.Audio();
if count == 0
fs = p.Audio.sampleRate;
end
pause(1)
lastIndex = p.Audio.lastFrameIndex;
diffIndex = lastIndex - lastLastIndex;
temp = cell2mat(p.Audio.left);
temp = temp(max(end-diffIndex+1,1):end);
allAudio = [allAudio; temp];
lastLastIndex = lastIndex;
count = count+1
end
\ No newline at end of file
Supports Markdown
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