diff options
author | XANTRONIX Development | 2022-02-28 17:18:11 -0500 |
---|---|---|
committer | XANTRONIX Development | 2022-02-28 17:18:11 -0500 |
commit | 52974d57331ee2ed36eafc0cd9d310ba5191f546 (patch) | |
tree | e1fa1f6b6e659f54301455ebf825c12e89436159 /src | |
parent | 8293f5811f4fe5d3d955dc78833eab6ab2779b4e (diff) | |
download | xas-52974d57331ee2ed36eafc0cd9d310ba5191f546.tar.gz xas-52974d57331ee2ed36eafc0cd9d310ba5191f546.tar.bz2 xas-52974d57331ee2ed36eafc0cd9d310ba5191f546.zip |
Set stream_new callback for audible object types
Diffstat (limited to 'src')
-rw-r--r-- | src/bank.c | 7 | ||||
-rw-r--r-- | src/synth.c | 7 | ||||
-rw-r--r-- | src/vox.c | 7 |
3 files changed, 12 insertions, 9 deletions
@@ -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; @@ -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; |