not sure what would have broken this but... adding required windows dependencies for MIDI to operate

This commit is contained in:
Heather Anderson 2021-12-14 19:55:13 -08:00 committed by ksuprynowicz
parent bc6eaf25dc
commit 742fa225f2
2 changed files with 6 additions and 3 deletions

View file

@ -2,3 +2,7 @@ set(TARGET_NAME midi)
setup_hifi_library(Network)
link_hifi_libraries(shared networking)
include_hifi_library_headers(script-engine)
if (WIN32)
target_link_libraries(${TARGET_NAME} winmm.lib)
endif ()

View file

@ -19,10 +19,9 @@
#include <ScriptManager.h>
#if defined Q_OS_WIN32
#include "Windows.h"
#endif
#include <Windows.h>
#include <mmeapi.h>
#if defined Q_OS_WIN32
const int MIDI_BYTE_MASK = 0x0FF;
const int MIDI_NIBBLE_MASK = 0x00F;
const int MIDI_PITCH_BEND_MASK = 0x3F80;