int play_start(FPlayer *play, char *names,int length)
{
int err = 0;
for (int i =0; i < length; i ++) {
err = FMOD_System_CreateStream(play->system,names[i], FMOD_DEFAULT, 0, &play->sounds[i]);
if(err!=0) return -1;
err = FMOD_Sound_SetMode(play->sounds[i],FMOD_LOOP_NORMAL|FMOD_CREATESTREAM);
if(err != 0) return -1;
err = FMOD_System_PlaySound(play->system, play->sounds[i], play->channelGroup, false, &play->channels[i]);
if(err != 0) return -1;
err = FMOD_System_CreateDSPByType(play->system, FMOD_DSP_TYPE_PITCHSHIFT, &play->dsps[i]);
if(err != 0) return -1;
}
if(err!=0)return -1;
play->flag = 1;
return err;
}
我设置了多个音频播放,怎么合并导出到沙盒文件