summaryrefslogtreecommitdiffstats
path: root/src/bank.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bank.c')
-rw-r--r--src/bank.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/bank.c b/src/bank.c
index d2c7de9..698cbfb 100644
--- a/src/bank.c
+++ b/src/bank.c
@@ -162,6 +162,12 @@ void xas_bank_player_destroy(xas_bank_player *player) {
free(player);
}
+size_t xas_bank_entry_duration(xas_bank *bank, size_t entry_index) {
+ xas_bank_entry *entry = entry_by_index(bank, entry_index);
+
+ return entry->duration;
+}
+
int xas_bank_player_set_entry(xas_bank_player *player, size_t entry) {
if (entry > player->bank->entry_count) {
errno = EINVAL;