大人们好,我是BREW新人,我想知道BREW 3.15的两个音乐同时播放问题,应该怎么实现呢?是不是只能使用QCP或者MIDI格式?MP3格式不行么? 请给个简单的实现源码。谢谢了。大概具体的操作我懂。
------解决方案--------------------------------------------------------
- C/C++ code
AEEMediaData medData = {0};IMedia *m_pAudio1; IMedia *m_pAudio2; medData.clsData = MMD_FILE_NAME;medData.dwSize = 0;medData.pData ="1.mp3"if(SUCCESS != = AEEMediaUtil_CreateMedia(pme->m_pIShell, &medData, (IMedia **)&pme->m_pAudio1)){ return;}IMEDIA_EnableChannelShare(pme->m_pAudio1, TRUE);medData.pData ="2.mp3"if(SUCCESS != = AEEMediaUtil_CreateMedia(pme->m_pIShell, &medData, (IMedia **)&pme->m_pAudio2)){ return;}IMEDIA_EnableChannelShare(pme->m_pAudio2, TRUE);IMEDIA_Play(pme->m_pAudio1);IMEDIA_Play(pme->m_pAudio2);