From 90143f5876cb0f982a8d9f3ae9b55f64a78cbd06 Mon Sep 17 00:00:00 2001 From: Maschell Date: Wed, 20 Jun 2018 21:46:06 +0200 Subject: [PATCH] Add sndcore2 functions --- include/sndcore2/core.h | 3 +++ include/sndcore2/voice.h | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/include/sndcore2/core.h b/include/sndcore2/core.h index c4f1c73..19a4dbd 100644 --- a/include/sndcore2/core.h +++ b/include/sndcore2/core.h @@ -77,6 +77,9 @@ AXSetDefaultMixerSelect(uint32_t unk0); AXResult AXRegisterAppFrameCallback(AXFrameCallback callback); +AXFrameCallback +AXRegisterFrameCallback(AXFrameCallback callback); + uint32_t AXGetInputSamplesPerFrame(); diff --git a/include/sndcore2/voice.h b/include/sndcore2/voice.h index 667b712..f4fd243 100644 --- a/include/sndcore2/voice.h +++ b/include/sndcore2/voice.h @@ -253,6 +253,12 @@ WUT_CHECK_SIZE(AXVoiceSrc, 0xe); #pragma pack(pop) +int32_t +AXVoiceBegin(AXVoice *v); + +int32_t +AXVoiceEnd(AXVoice *v); + AXVoice * AXAcquireVoice(uint32_t priority, AXVoiceCallbackFn callback,