How to load custom DLS or SoundFonts to Android MIDI

橙三吉。 提交于 2019-12-06 02:55:35

问题


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:


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!