From 99d7cfbb08067370661ba5d3dcc628a107ad63d7 Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Mon, 28 Feb 2022 15:47:48 -0500 Subject: Ensure default bank player gain is 1.0 --- include/xas/bank.h | 2 ++ src/bank.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/include/xas/bank.h b/include/xas/bank.h index 982302f..aed01ab 100644 --- a/include/xas/bank.h +++ b/include/xas/bank.h @@ -6,6 +6,8 @@ #include #include +#define XAS_BANK_PLAYER_DEFAULT_GAIN 1.0f + enum xas_bank_player_status { XAS_BANK_PLAYER_STOPPED, XAS_BANK_PLAYER_PLAYING, diff --git a/src/bank.c b/src/bank.c index 24e4466..cc41b6f 100644 --- a/src/bank.c +++ b/src/bank.c @@ -137,7 +137,7 @@ xas_bank_player *xas_bank_player_new(xas_bank *bank) { player->bank = bank; player->status = XAS_BANK_PLAYER_STOPPED; - player->gain = 0.0f; + player->gain = XAS_BANK_PLAYER_DEFAULT_GAIN; player->entry = 0; player->index = 0; -- cgit v1.2.3