How to load custom DLS or SoundFonts to Android MIDI
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 pl开发者_运维知识库ayer and have the library use these sounds for MIDI playback?
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.
精彩评论