All messages from thread From: Trevor Ellermann (spam@ellermann.net) Message 1 in thread Subject: Matlab sound on SunRay terminals Newsgroups: comp.soft-sys.matlab Date: 2001-09-12 16:18:07 PST View this article only Hello all, I am a system administrator for the department of Electrical and Computer Engineering at the University of Arizona. We teach a class that requires the use of sound in matlab. We have recently upgraded our labs from Ultra5’s to SunRay Terminals. These terminals do not use the traditional /dev/audio device. Instead they use /tmp/SUNWut/de/utaudio/1 2 3 etc.. I contacted matlab tech support and they say there is no currently supported way to change your audio device. I tried using the library that comes with the SunRay software to get /dev/audio to forward data to the correct device but that did not work either. Any help would be much appreciated. Version info: Matlab Version 5.3.1.29215a (R11.1) Sunray version 1.2 and 1.3 Solaris 2.8 (7/01) --Trevor Ellermann trevor@ece.arizona.edu From: Trevor Ellermann (spam@ellermann.net) Message 2 in thread Subject: Re: Matlab sound on SunRay terminals Newsgroups: comp.soft-sys.matlab Date: 2001-09-14 16:20:11 PST View this article only With much help from Brian Wherry sound is working properly on the SunRay terminals now. Here is what we did. in toolbox/matlab/datafun/playsnd.m we made the following changes. add: audioDev = getenv('AUDIODEV'); if isempty(audioDev) audioDev = '/dev/audio'; end change: fp = fopen(/dev/audio,'wb'); to fp = fopen(audioDev,'wb'); and change: eval(['!cat ' tmpfile ' | ' rsh dspname ' ''cat > /dev/audio'' ']); to eval(['!cat ' tmpfile ' | ' rsh dspname ' ''cat > audioDev'' ']); With those changes all is well. Thanks again Brian. --Trevor Ellermann trevor@ece.arizona.edu trevor@ece.arizona.edu (Trevor Ellermann) wrote in message news:<6285885e.0109121518.5d5784b0@posting.google.com>... > Hello all, > > I am a system administrator for the department of Electrical and > Computer Engineering at the University of Arizona. We teach a class > that requires the use of sound in matlab. We have recently upgraded > our labs from Ultra5’s to SunRay Terminals. These terminals do > not use the traditional /dev/audio device. Instead they use > /tmp/SUNWut/de/utaudio/1 2 3 etc.. I contacted matlab tech support and > they say there is no currently supported way to change your audio > device. I tried using the library that comes with the SunRay software > to get /dev/audio to forward data to the correct device but that did > not work either. Any help would be much appreciated. > > Version info: > Matlab Version 5.3.1.29215a (R11.1) > Sunray version 1.2 and 1.3 > Solaris 2.8 (7/01) > > --Trevor Ellermann > trevor@ece.arizona.edu ©2001 Google