Fixed waveOutClose, call waveOutReset first.

Signed-off-by: Armin Novak <armin.novak@thincast.com>
This commit is contained in:
Armin Novak 2020-01-08 19:23:47 +01:00
parent b0de74cad2
commit e86849759a
2 changed files with 5 additions and 1 deletions

View File

@ -170,6 +170,10 @@ static void rdpsnd_winmm_close(rdpsndDevicePlugin* device)
for (x = 0; x < SEM_COUNT_MAX; x++)
WaitForSingleObject(winmm->semaphore, INFINITE);
#endif
mmResult = waveOutReset(winmm->hWaveOut);
if (mmResult != MMSYSERR_NOERROR)
WLog_Print(winmm->log, WLOG_ERROR, "waveOutReset failure: %" PRIu32 "", mmResult);
mmResult = waveOutClose(winmm->hWaveOut);
if (mmResult != MMSYSERR_NOERROR)
WLog_Print(winmm->log, WLOG_ERROR, "waveOutClose failure: %" PRIu32 "", mmResult);

View File

@ -21,7 +21,7 @@ DEB_CMAKE_EXTRA_FLAGS := -DCMAKE_SKIP_RPATH=FALSE \
-DWITH_SERVER=ON \
-DWITH_CAIRO=ON \
-DBUILD_TESTING=OFF \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_INSTALL_PREFIX=/opt/freerdp-nightly/ \
-DCMAKE_INSTALL_INCLUDEDIR=include \
-DCMAKE_INSTALL_LIBDIR=lib \