From 52974d57331ee2ed36eafc0cd9d310ba5191f546 Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Mon, 28 Feb 2022 17:18:11 -0500 Subject: Set stream_new callback for audible object types --- src/bank.c | 7 ++++--- src/synth.c | 7 ++++--- src/vox.c | 7 ++++--- 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/src/bank.c b/src/bank.c index cc41b6f..e311023 100644 --- a/src/bank.c +++ b/src/bank.c @@ -131,9 +131,10 @@ xas_bank_player *xas_bank_player_new(xas_bank *bank) { goto error_malloc_player; } - player->obj.start = (xas_object_start_callback)xas_bank_player_start; - player->obj.stop = (xas_object_stop_callback)xas_bank_player_stop; - player->obj.set_gain = (xas_object_set_gain_callback)set_gain; + player->obj.start = (xas_object_start_callback)xas_bank_player_start; + player->obj.stop = (xas_object_stop_callback)xas_bank_player_stop; + player->obj.set_gain = (xas_object_set_gain_callback)set_gain; + player->obj.stream_new = (xas_object_stream_new_callback)xas_bank_player_stream_new; player->bank = bank; player->status = XAS_BANK_PLAYER_STOPPED; diff --git a/src/synth.c b/src/synth.c index 650c8c9..4956621 100644 --- a/src/synth.c +++ b/src/synth.c @@ -126,9 +126,10 @@ xas_synth *xas_synth_new(xas_audio_format format, goto error_malloc_synth; } - synth->obj.start = (xas_object_start_callback)synth_start; - synth->obj.stop = (xas_object_stop_callback)synth_stop; - synth->obj.set_gain = (xas_object_set_gain_callback)set_gain; + synth->obj.start = (xas_object_start_callback)synth_start; + synth->obj.stop = (xas_object_stop_callback)synth_stop; + synth->obj.set_gain = (xas_object_set_gain_callback)set_gain; + synth->obj.stream_new = (xas_object_stream_new_callback)xas_synth_stream_new; synth->type = type; synth->state = XAS_SYNTH_IDLE; diff --git a/src/vox.c b/src/vox.c index 84e2c28..f53f3fd 100644 --- a/src/vox.c +++ b/src/vox.c @@ -289,9 +289,10 @@ xas_vox *xas_vox_new_args(xas_audio_format format, goto error_malloc_vox; } - vox->obj.start = (xas_object_start_callback)xas_vox_generate; - vox->obj.stop = (xas_object_stop_callback)xas_vox_stop; - vox->obj.set_gain = (xas_object_set_gain_callback)set_gain; + vox->obj.start = (xas_object_start_callback)xas_vox_generate; + vox->obj.stop = (xas_object_stop_callback)xas_vox_stop; + vox->obj.set_gain = (xas_object_set_gain_callback)set_gain; + vox->obj.stream_new = (xas_object_stream_new_callback)xas_vox_stream_new; vox->text2wave_path = text2wave_path; -- cgit v1.2.3