1

I'm starting from msfuntmpl_basic.m and modifying it to output audio from an audio device.

Where can I store the device (dsp.AudioRecorder)?

Chuck Carlson
  • 977
  • 8
  • 26

1 Answers1

0

The solution seems to be use the 'persistent' attribute for the variable in a function.

Chuck Carlson
  • 977
  • 8
  • 26
  • Why not use the "from audio device" block directly as a block in your model? That may be faster. – Navan May 25 '16 at 13:14
  • There is no "from audio device" block in 2016a. There is an "Audio Device Reader" block but it gives me a portAudio error msg when I try to use it. – Chuck Carlson May 25 '16 at 21:09