diff options
Diffstat (limited to 'src/bank.c')
-rw-r--r-- | src/bank.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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; |