OneLoneCoder / olcSoundWaveEngine

A single file, easy to use, audio playback and synthesis framework
94 stars 19 forks source link

SOUNDWAVE_USING_WINMM section should include mmeapi.h #38

Open MaGetzUb opened 2 years ago

MaGetzUb commented 2 years ago

When you use the default WINMM backend, some winapi macros may disable including mmeapi.h from the Windows.h, therefore HWAVEOUT handles and other WINMM things become undefined. My suggestion is to add #include <mmeapi.h> after #include <windows.h> in the WINMM backend.