[18032] in Athena Bugs
Re: sun4 8.3.29: matlab
daemon@ATHENA.MIT.EDU (Abby Fox)
Tue Jul 25 16:09:19 2000
Message-Id: <200007252009.QAA174748@augmented.mit.edu>
To: thibaut@MIT.EDU
cc: bugs@MIT.EDU
Date: Tue, 25 Jul 2000 16:09:14 -0400
From: Abby Fox <ajfox@MIT.EDU>
Regarding your bug report about matlab's sound(Y,FS): on Suns, it does
indeed seem to play at the default sample rate regardless of what you
specify for FS, but on SGIs it appears to work properly. If you look at
sound.m you'll see it calls a function 'playsnd'; on SGIs it has a MEX
file for this (which presumably contains code that actually uses FS),
while on the Sun it's an M-file which takes FS as input but does
nothing with it.
I'll report this to The Mathworks and let you know if we hear anything
useful back; at the very least, they could make their documentation
clearer about platform-dependence.
As a workaround on Suns, you could use matlab's auread/auwrite to go
between matlab data and a sound file, and then play the file with the
native Solaris tool either from the shell:
athena% audioplay filename
or from within matlab:
>> !audioplay filename
and you should hear it at the actual sample rate.
Abby Fox
Academic Computing