summaryrefslogtreecommitdiff
path: root/modules/winwave/play.c
diff options
context:
space:
mode:
authorAlfred E. Heggestad <aeh@db.org>2014-11-09 10:44:34 +0100
committerAlfred E. Heggestad <aeh@db.org>2014-11-09 10:44:34 +0100
commit9c6e8cfe1470b9382fab2b93c1cd2b9eea521c0d (patch)
tree836c4073f22ec7bf5fbf6c3874e99c05549f2b43 /modules/winwave/play.c
parent973cb7b3ea7bd8e4be21becbf85c600466245e97 (diff)
winwave: do not open player device twice
thanks to Tomasz Ostrowski for reporting
Diffstat (limited to 'modules/winwave/play.c')
-rw-r--r--modules/winwave/play.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/modules/winwave/play.c b/modules/winwave/play.c
index fb99a44..77e7501 100644
--- a/modules/winwave/play.c
+++ b/modules/winwave/play.c
@@ -164,15 +164,6 @@ static int write_stream_open(struct auplay_st *st,
warning("winwave: waveOutOpen: failed %d\n", res);
return EINVAL;
}
- waveOutClose(st->waveout);
- res = waveOutOpen(&st->waveout, WAVE_MAPPER, &wfmt,
- (DWORD_PTR) waveOutCallback,
- (DWORD_PTR) st,
- CALLBACK_FUNCTION | WAVE_FORMAT_DIRECT);
- if (res != MMSYSERR_NOERROR) {
- warning("winwave: waveOutOpen: failed %d\n", res);
- return EINVAL;
- }
return 0;
}