Build only if DSOUND_SUPPORT is defined

This commit is contained in:
carlo-bramini 2018-03-25 13:46:30 +02:00 committed by GitHub
parent 1fcf81fbc4
commit 3825d666d8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,11 +19,14 @@
*/
#define INITGUID
#include "fluid_synth.h"
#include "fluid_adriver.h"
#include "fluid_settings.h"
#if DSOUND_SUPPORT
#define INITGUID
#include <mmsystem.h>
#include <dsound.h>
@ -366,3 +369,5 @@ char* fluid_win32_error(HRESULT hr) {
}
return s;
}
#endif /* DSOUND_SUPPORT */