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:
Henrique Gemignani Passos Lima
2021-04-04 14:05:17 +03:00
parent 6335cb09fe
commit 3f1737eaeb
8 changed files with 176 additions and 74 deletions

View File

@@ -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;

View File

@@ -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);