From 08fe80410c137d860ea9788dffa0536af556bda9 Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Wed, 16 Mar 2022 01:23:10 -0400 Subject: Use xas_object_init() for new banks --- src/bank.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/bank.c b/src/bank.c index 735f479..2f19680 100644 --- a/src/bank.c +++ b/src/bank.c @@ -141,6 +141,8 @@ xas_bank_player *xas_bank_player_new(xas_bank *bank) { player->obj.start = (xas_object_start_callback)xas_bank_player_start; player->obj.stop = (xas_object_stop_callback)xas_bank_player_stop; + xas_object_init(&player->obj); + 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->obj.destroy = (xas_object_destroy_callback)xas_bank_player_destroy; -- cgit v1.2.3