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?
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.
来源:https://stackoverflow.com/questions/5125911/how-to-load-custom-dls-or-soundfonts-to-android-midi