# WIN: A new bug in SND?

**URL:** <https://psychtoolbox.discourse.group/t/win-a-new-bug-in-snd/1560>\
**Category:** Uncategorized\
**Created:** [September 26, 2005, 4:18am UTC](https://psychtoolbox.discourse.group/t/win-a-new-bug-in-snd/1560 "2005-09-26T04:18:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Allen\_Ingling](https://avatars.discourse-cdn.com/v4/letter/a/a183cd/32.png) [@Allen\_Ingling](https://psychtoolbox.discourse.group/u/Allen_Ingling)\
**Post date:** [September 26, 2005, 4:18am UTC](https://psychtoolbox.discourse.group/t/win-a-new-bug-in-snd/1560/1 "2005-09-26T04:18:28Z")

</div>

Hi all,  
I am running PTB 2.54 and Eyelink Toolbox 1.4.4 under Win XP and   
Matlab 7.0.4. I was initially unable get through any of the demos   
that are included with the eyelink toolbox without errors. Most   
errors were caused during calls to the SND function of the PTB. The   
error was specific to the 'Play' command: "One or more output   
arguments not assigned during call to ... Snd.m". The problem   
occurred because the snd function was not assigning any value to the   
return argument when 'Play' was requested (err). I added err = 0 to   
the code and the demos now seem to run fine. Has anyone else had   
this problem? Is it an XP problem, or perhaps Matlab 7?  
  
Here is the ammended snd.m code (lines 197-199 in my file):  
  
sound(signal',rate,sampleSize);  
endTime=GetSecs+length(signal)/rate;  
err = 0;  
  
Regards,  
Adam
