Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/fhandler_dsp.cc')
-rw-r--r--winsup/cygwin/fhandler_dsp.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/winsup/cygwin/fhandler_dsp.cc b/winsup/cygwin/fhandler_dsp.cc
index 88cdd30b7..c3d6a67df 100644
--- a/winsup/cygwin/fhandler_dsp.cc
+++ b/winsup/cygwin/fhandler_dsp.cc
@@ -432,10 +432,13 @@ fhandler_dev_dsp::open (const char *path, int flags, mode_t mode = 0)
audiochannels_ = 1;
}
- if (s_audio.open(audiofreq_, audiobits_, audiochannels_))
- debug_printf("/dev/dsp: successfully opened\n");
- else
+ if (!s_audio.open(audiofreq_, audiobits_, audiochannels_))
debug_printf("/dev/dsp: failed to open\n");
+ else
+ {
+ set_open_status ();
+ debug_printf("/dev/dsp: successfully opened\n");
+ }
return 1;
}