On Mon, Dec 8, 2008 at 1:06 PM, Søren Hauberg <[EMAIL PROTECTED]> wrote:
>> I also noticed that the logic for checking the global
>> sound_play_utility variable in sound.m wasn't working for me.
> I think you are correct. Care to suggest a patch :-)  ?

Attached.

Thanks Søren!
Index: sound.m
===================================================================
--- sound.m	(revision 5481)
+++ sound.m	(working copy)
@@ -95,9 +95,9 @@
   endif
 
   ## What do we use for playing?
-  if (exist("sound_play_utility", "var"))
-    ## The user is always right, so just declare the set variable as global
-    global sound_play_utility;
+  global sound_play_utility;
+  if ~isempty(sound_play_utility),
+    ## User specified command
   elseif  (file_in_path(EXEC_PATH, "ofsndplay"))
     ## Mac
     sound_play_utility = "ofsndplay -"
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Octave-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to