开发者

How to load custom DLS or SoundFonts to Android MIDI

开发者 https://www.devze.com 2023-02-13 08:28 出处:网络
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 s

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消