From a065806db89ee53bac897f50366ece1b9f50d156 Mon Sep 17 00:00:00 2001 From: Robert Konrad Date: Mon, 29 Jan 2024 15:19:35 +0100 Subject: [PATCH] Update Kinc and fix the audio callback --- Backends/Kinc-hxcpp/main.cpp | 4 ++-- Kinc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Backends/Kinc-hxcpp/main.cpp b/Backends/Kinc-hxcpp/main.cpp index 77829a3cb..f4a0c8777 100644 --- a/Backends/Kinc-hxcpp/main.cpp +++ b/Backends/Kinc-hxcpp/main.cpp @@ -202,7 +202,7 @@ namespace { #endif bool mixThreadregistered = false; - void mix(kinc_a2_buffer_t *buffer, int samples) { + void mix(kinc_a2_buffer_t *buffer, int samples, void *userdata) { using namespace Kore; int t0 = 99; @@ -340,7 +340,7 @@ void post_kinc_init() { } void kha_kinc_init_audio(void) { - kinc_a2_set_callback(mix); + kinc_a2_set_callback(mix, nullptr); kinc_a2_init(); ::kha::audio2::Audio_obj::samplesPerSecond = kinc_a2_samples_per_second; } diff --git a/Kinc b/Kinc index 5697b8921..83af1a742 160000 --- a/Kinc +++ b/Kinc @@ -1 +1 @@ -Subproject commit 5697b89214841482ba05e488492501ce584d1380 +Subproject commit 83af1a7421465c4d904ba31c8ba6433e2c35d65f