How do I load multiple sound files without exceeding the maximum number of files limitation?
One possible solution is to store multiple sound files as a single file. You can load the appropriate sound clip into a buffer and play from that buffer using ISOUNDPLAYER_SetStream. For example: //Open the file for reading and store to our apps file pointer. pMe->m_pIFile = IFILEMGR_OpenFile(pMe->m_pIFileMgr, pMe->MultipleMidiFile, _OFM_READ); if (!pMe->m_pIFile) return FALSE; // Calculate DESIRED_OFFSET (not shown) if (IFILE_Seek(pMe->m_pIFile, _SEEK_START, DESIRED_OFFSET) != SUCCESS ) return FALSE; // The function asynchronously triggers a AEE_SOUNDPLAYER_STATUS callback.
Related Questions
- The SoundMAX synthesizer can play MIDI files that use custom DLS sound sets. What is DLS and how can I load DLS files into SoundMAX?
- How do I load multiple sound files without exceeding the maximum number of files limitation?
- Is there a maximum number of .gpi files (POI files) that I can load on the Garmin Oregon?