From a0f4075b6c7bcf5967be78ae6bf2cefe94ad755e Mon Sep 17 00:00:00 2001 From: Wohlstand Date: Fri, 2 Sep 2016 21:28:34 +0300 Subject: Added a function to retrieve a count of the banks --- src/adlmidi.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/adlmidi.h') diff --git a/src/adlmidi.h b/src/adlmidi.h index 115c0a6..23dd65c 100644 --- a/src/adlmidi.h +++ b/src/adlmidi.h @@ -60,9 +60,12 @@ struct ADL_MIDIPlayer { /* Sets number of emulated sound cards (from 1 to 100). Emulation of multiple sound cards exchanges polyphony limits*/ extern int adl_setNumCards(struct ADL_MIDIPlayer*device, int numCards); -/* Sets a number of the patches bank from 0 to 64 */ +/* Sets a number of the patches bank from 0 to N banks */ extern int adl_setBank(struct ADL_MIDIPlayer* device, int bank); +/* Returns total number of available banks */ +extern int adl_getBanksCount(); + /*Sets number of 4-chan operators*/ extern int adl_setNumFourOpsChn(struct ADL_MIDIPlayer*device, int ops4); -- cgit v1.2.3