summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorXANTRONIX Development2022-03-16 01:23:10 -0400
committerXANTRONIX Development2022-03-16 01:23:10 -0400
commit08fe80410c137d860ea9788dffa0536af556bda9 (patch)
treefc18145cfd4ee27355d27179495fb6e18d128af6 /src
parent4f717a808a85bf212fc550527e8fc72cbcaeb220 (diff)
downloadxas-08fe80410c137d860ea9788dffa0536af556bda9.tar.gz
xas-08fe80410c137d860ea9788dffa0536af556bda9.tar.bz2
xas-08fe80410c137d860ea9788dffa0536af556bda9.zip
Use xas_object_init() for new banks
Diffstat (limited to 'src')
-rw-r--r--src/bank.c2
1 files changed, 2 insertions, 0 deletions
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;