summaryrefslogtreecommitdiffstats
path: root/scilab/modules/sound
diff options
context:
space:
mode:
authorAllan CORNET <allan.cornet@scilab.org>2010-03-08 09:28:07 +0100
committerAllan CORNET <allan.cornet@scilab.org>2010-03-08 09:28:07 +0100
commit8b7ac05e63459066060daee277f1a41d5b8905d3 (patch)
tree4279ccbffa71e2a0697c866471a0f02e12148c58 /scilab/modules/sound
parent4c6a4300d0c9a42b71fb8572e6a656ee3bcb3bdf (diff)
downloadscilab-8b7ac05e63459066060daee277f1a41d5b8905d3.zip
scilab-8b7ac05e63459066060daee277f1a41d5b8905d3.tar.gz
MSDOS replaced by getos() == 'Windows'
Diffstat (limited to 'scilab/modules/sound')
-rw-r--r--scilab/modules/sound/macros/playsnd.sci2
1 files changed, 1 insertions, 1 deletions
diff --git a/scilab/modules/sound/macros/playsnd.sci b/scilab/modules/sound/macros/playsnd.sci
index 1076990..a2c2f53 100644
--- a/scilab/modules/sound/macros/playsnd.sci
+++ b/scilab/modules/sound/macros/playsnd.sci
@@ -39,7 +39,7 @@ function [] = playsnd(y, rate, bits, aplay)
39 end 39 end
40 end 40 end
41 41
42 if MSDOS then 42 if getos() == 'Windows' then
43 savewave(TMPDIR+'/_playsnd_.wav', y, rate); 43 savewave(TMPDIR+'/_playsnd_.wav', y, rate);
44 PlaySound(TMPDIR+'/_playsnd_.wav'); 44 PlaySound(TMPDIR+'/_playsnd_.wav');
45 return 45 return