MATLAB Answers

Issues with sound and soundsc (matlab R2011a, Lion)

8 views (last 30 days)
Wendy
Wendy on 27 Feb 2012
Commented: folkelotte on 28 Dec 2016
Hi,
I am having issues with sound and soundsc (I have a mac: Lion 10.7.2, using matlab R2011a).
Whenever I try to play sounds using sound or soundsc, I get the following error:
-----
Warning: The following error was caught while executing 'asyncio.Channel' class destructor:
Too many input arguments.
> In audioplayer.audioplayer>audioplayer.initialize at 241
In audioplayer.audioplayer>audioplayer.audioplayer at 194
In audiovideo/private/playsnd at 15
In sound at 58
In soundsc at 48
??? Error using ==> playsnd at 18
Too many input arguments.
Error in ==> sound at 58
playsnd(y,fs,bits);
Error in ==> soundsc at 48
sound(varargin{:})
--
an example of code in which I get that error, using one of Matlab's sample sounds:
load gong.mat;
sound(y, Fs);
I've been able to easily use sound and soundsc before. Has anyone else had this problem?
Thanks!

  0 Comments

Sign in to comment.

Answers (2)

Daniel Shub
Daniel Shub on 28 Feb 2012
This is surprising to me. I would contact TMW directly. While MATLAB and sound is sometimes flaky, it usually doesn't crash like this. I don't use a mac so I cannot confirm your problem.

  0 Comments

Sign in to comment.


Sandeep Rai
Sandeep Rai on 19 Apr 2016
Having the same problem with audioread function in Windows 7 32-bit OS. It used to work on this same machine but now I tried different wav files. Everytime the problem is same.

  1 Comment

folkelotte
folkelotte on 28 Dec 2016
Yes, it keeps happening to me, too. Windows 7, 64-bit, Matlab R2014a. I don't need it very urgently, so for the time being, I'll do nothing about it, but if you had an resolution for the problem, I'd be interested!

Sign in to comment.

Sign in to answer this question.