mirror of
https://github.com/AxioDL/boo.git
synced 2025-12-11 14:41:59 +00:00
Disable more code; remove <Windows.h> from headers
This commit is contained in:
@@ -1,10 +1,7 @@
|
||||
#include "lib/win/Win32Common.hpp"
|
||||
#include "lib/audiodev/AudioVoiceEngine.hpp"
|
||||
|
||||
#include <iterator>
|
||||
|
||||
#include "boo/IApplication.hpp"
|
||||
#include "lib/audiodev/AudioVoiceEngine.hpp"
|
||||
|
||||
#include <Mmdeviceapi.h>
|
||||
#include <Audioclient.h>
|
||||
#include <mmsystem.h>
|
||||
@@ -38,6 +35,14 @@ using namespace Windows::Media::Devices;
|
||||
const IID IID_IAudioClient = __uuidof(IAudioClient);
|
||||
const IID IID_IAudioRenderClient = __uuidof(IAudioRenderClient);
|
||||
|
||||
#include <wrl/client.h>
|
||||
template <class T>
|
||||
using ComPtr = Microsoft::WRL::ComPtr<T>;
|
||||
template <class T>
|
||||
static inline ComPtr<T>* ReferenceComPtr(ComPtr<T>& ptr) {
|
||||
return reinterpret_cast<ComPtr<T>*>(ptr.GetAddressOf());
|
||||
}
|
||||
|
||||
namespace boo {
|
||||
static logvisor::Module Log("boo::WASAPI");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user