mirror of
https://github.com/AxioDL/boo.git
synced 2025-12-09 21:47:57 +00:00
Minor Windows include tweaks
This commit is contained in:
@@ -1,6 +1,14 @@
|
||||
#ifndef BOO_SYSTEM_HPP
|
||||
#define BOO_SYSTEM_HPP
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <windows.h>
|
||||
#include <D3Dcommon.h>
|
||||
#include <wrl/client.h>
|
||||
template <class T>
|
||||
using ComPtr = Microsoft::WRL::ComPtr<T>;
|
||||
#endif
|
||||
|
||||
#include <string>
|
||||
|
||||
#ifndef ENABLE_BITWISE_ENUM
|
||||
@@ -53,12 +61,4 @@ namespace boo
|
||||
|
||||
}
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <windows.h>
|
||||
#include <D3Dcommon.h>
|
||||
#include <wrl/client.h>
|
||||
template <class T>
|
||||
using ComPtr = Microsoft::WRL::ComPtr<T>;
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
@@ -609,8 +609,8 @@ struct WASAPIAudioVoiceEngine : BaseAudioVoiceEngine
|
||||
|
||||
size_t send(const void* buf, size_t len) const
|
||||
{
|
||||
memcpy(const_cast<MIDIOut*>(this)->m_buf, buf, std::min(len, size_t(512)));
|
||||
const_cast<MIDIOut*>(this)->m_hdr.dwBytesRecorded = len;
|
||||
memcpy(const_cast<uint8_t*>(m_buf), buf, std::min(len, size_t(512)));
|
||||
const_cast<MIDIHDR&>(m_hdr).dwBytesRecorded = len;
|
||||
midiStreamOut(m_strm, LPMIDIHDR(&m_hdr), sizeof(m_hdr));
|
||||
return len;
|
||||
}
|
||||
|
||||
2
logvisor
2
logvisor
Submodule logvisor updated: a190c5cfb6...c839ce774c
Reference in New Issue
Block a user