mirror of
https://github.com/AxioDL/boo.git
synced 2025-12-09 21:47:57 +00:00
Add optick
It is only linked for Windows, macOS and Linux, but disabled by default. Vulkan support is also enabled if Vulkan is found.
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
#include <Functiondiscoverykeys_devpkey.h>
|
||||
|
||||
#include <logvisor/logvisor.hpp>
|
||||
#include <optick.h>
|
||||
|
||||
#ifdef TE_VIRTUAL_MIDI
|
||||
#include <teVirtualMIDI.h>
|
||||
@@ -391,6 +392,7 @@ struct WASAPIAudioVoiceEngine : BaseAudioVoiceEngine {
|
||||
}
|
||||
|
||||
void pumpAndMixVoices() override {
|
||||
OPTICK_EVENT();
|
||||
#if WINDOWS_STORE
|
||||
if (!m_ready)
|
||||
return;
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
|
||||
#include "boo/audiodev/IAudioVoiceEngine.hpp"
|
||||
#include <logvisor/logvisor.hpp>
|
||||
#include <optick.h>
|
||||
|
||||
namespace boo {
|
||||
|
||||
@@ -227,6 +228,7 @@ struct WAVOutVoiceEngine : BaseAudioVoiceEngine {
|
||||
}
|
||||
|
||||
void pumpAndMixVoices() override {
|
||||
OPTICK_EVENT();
|
||||
size_t frameSz = 4 * m_mixInfo.m_channelMap.m_channelCount;
|
||||
_pumpAndMixVoices(m_5msFrames, m_interleavedBuf.data());
|
||||
fwrite(m_interleavedBuf.data(), 1, m_5msFrames * frameSz, m_fp);
|
||||
|
||||
Reference in New Issue
Block a user