Hi,
I've been using a script for a while for recording audio. The script has worked without problems for a while now. Strangely, today I've started getting an error message:
" Error using audiorecorder/resume (line 609) Device Error: Unanticipated host error
Error in audiorecorder/record (line 653) resume(obj); "
I've tried the code with the external audio card (Xonar U7) I've been using and which the script has worked with before, and with-out (connecting directly to the motherboard microphone jack), but I get the same error message.
The audiorecorder object currently: "arec =
audiorecorder with properties: SampleRate: 48000 BitsPerSample: 16 NumberOfChannels: 2 DeviceID: 1 CurrentSample: 1 TotalSamples: 0 Running: 'off' StartFcn: [] StopFcn: [] TimerFcn: [] TimerPeriod: 0.0500 Tag: '' UserData: [] Type: 'audiorecorder'"
And the command that initiates the error is simply:
record(arec)
OS: Windows 10.
audiodevinfo:>> info.input.Nameans =Primary Sound Capture Driver (Windows DirectSound)ans =Microphone (Realtek High Definition Audio) (Windows DirectSound)>> info.input.DriverVersionans =Windows DirectSoundans =Windows DirectSound>> info.input.IDans = 0ans = 1
Any idea what's going on???
Thanks, Iftach
Best Answer