How to load custom DLS or SoundFonts to Android MIDI

4.1k views Asked by At

I have an application that plays MIDI files through the SONiVOX EAS library. Is it possible to load my own DLS or SoundFont wavetables into the player and have the library use these sounds for MIDI playback?

1

There are 1 answers

5
Hjalmar On BEST ANSWER

Ok, I change my answer completely, as the Jet Creator obviously wasn't what you were looking for.

I took a look into the eas library, and found, (in eas.h)

/*----------------------------------------------------------------------------
 * EAS_LoadDLSCollection()
 *----------------------------------------------------------------------------
 * Purpose: 
 * Downloads a DLS collection
 *
 * Inputs:
 * pEASData             - instance data handle
 * streamHandle         - file or stream handle
 * locator              - file locator
 *      
 * Outputs:
 * 
 *
 * Side Effects:
 * May overlay instruments in the GM sound set
 *
 *----------------------------------------------------------------------------
*/
EAS_PUBLIC EAS_RESULT EAS_LoadDLSCollection (EAS_DATA_HANDLE pEASData, EAS_HANDLE streamHandle, EAS_FILE_LOCATOR locator);

Now this surely indicates that there is a way to load DLS files into the player. I've never used it though.