diff options
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; |