Skip to content

Commit

Permalink
Update Kinc and fix the audio callback
Browse files Browse the repository at this point in the history
  • Loading branch information
RobDangerous committed Jan 29, 2024
1 parent f0842fc commit a065806
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Backends/Kinc-hxcpp/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit a065806

Please sign in to comment.