Sunday, 15 April 2012

osx - Mac Matlab/ Simulinks Real time audio input -



osx - Mac Matlab/ Simulinks Real time audio input -

i building simple real time delay scheme on mac (2010-11 model; os x mavericks; serial sound input) using simulinks (matlab 2014a) consisting of 'audio input' block, 'audio output' block 'delay' block , adder (to add together delayed signal original signal), receive error: 'error in 'untitled/from sound device': given sound device may opened once.' twice sound input block.

when seek same using sound file input desired results. same diagram works fine on windows machine.

please help. give thanks you.

i think issue trying output sound sound device, while @ same time trying read sound device. won't work, can't that. see keep playing sound on , on 1 time again in matlab? similar issue in matlab. need somehow wait reading part finish before outputting sound sound device, or utilize 2 different devices, 1 reading , 1 writing.

i suspect same model worked on windows machine because had 2 sound devices (maybe built-in , external), , model automatically detected this, reading 1 device, , outputting other. documentation both blocks says:

use device parameter specify device acquire audio. parameter automatically populated based on sound devices installed on system.

which again, reinforces theory. if still have access windows machine, can double-check case.

osx matlab audio real-time simulink

No comments:

Post a Comment