Sound output/aquisition stops without an error (handles problem?)
Afficher commentaires plus anciens
Hi everyone,
I'm working on an project which has over 4000 measurement points. On every point, 151 different "beeps" need to be played (and simultaneously recorded) in a row. Every beep is 0.1sec long.
so my attempt was to put this in a loop with 151 different y's:
ap = audioplayer(y,Fs);
ar = audiorecorder(Fs, 16, 1);
play(ap)
recordblocking(ar, duration_of_y+0.1);
x = getaudiodata(ar);
It works good for the first few hundred measurement points. However, at some point the programme stops without an error and since the "reordblocking command is used, it also freezes.
As I was looking at the Windows Task Manager it appears that on the "Performance" Tab, the "Handles" are rising constantly during the measurment and will not drop until Matlab is closed again. I'm Conseuqently, the value is pretty high after the programm stops. I'm wondering if that might be a reason?
Anyone has an Idea what I did wrong or has a better idea how to play and simutaniously record a sound?
Cheers and Thanks in advanced, Steffen
Réponse acceptée
Plus de réponses (1)
Catégories
En savoir plus sur Audio and Video Data dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!