diff options
author | Alfred E. Heggestad <aeh@db.org> | 2014-11-09 10:44:34 +0100 |
---|---|---|
committer | Alfred E. Heggestad <aeh@db.org> | 2014-11-09 10:44:34 +0100 |
commit | 9c6e8cfe1470b9382fab2b93c1cd2b9eea521c0d (patch) | |
tree | 836c4073f22ec7bf5fbf6c3874e99c05549f2b43 /modules | |
parent | 973cb7b3ea7bd8e4be21becbf85c600466245e97 (diff) |
winwave: do not open player device twice
thanks to Tomasz Ostrowski for reporting
Diffstat (limited to 'modules')
-rw-r--r-- | modules/winwave/play.c | 9 |
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; } |