MATLAB: Winsound not working in MATLAB 64 bit version for reading/writing from/to the sound card

64-bitwinsound

Dear Mr/Mrs,
What is the alternative to use 'winsound' for MATLAB 64bit version? This used to work in previous MATLAB versions: daqinfo = daqhwinfo('winsound'); And I'm getting the following: Error using daqhwinfo (line 42) To learn about using data acquisition devices on the win64 platform, see the documentation on the session-based interface.
So I read a little bit, and apparently only 'ni' devices are supported for 64bit. So I tried: AI = analoginput('winsound'); And I'm getting almos the same: Error using analoginput (line 46) To learn about using data acquisition devices on the win64 platform, see the documentation on the session-based interface.
Probably I should try something like: s = daq.createSession('ni'); s.addAnalogInputChannel('???????')
What should I put in ???????? to read the soundcard?
Pablo

Best Answer

I suggest audiorecorder. I do not know what your application is, but this and its related functions may work for you. There are links to the others at the end of the documentation page for audiorecorder.
Related Question