void SoundMgr::addSound(char *path, string n){
Sound* s;
fmodsys->createSound(path, FMOD_SOFTWARE | FMOD_2D | FMOD_CREATESTREAM, 0, &s);
soundMap.insert(pair<string,Sound*>(n, s));
}
void SoundMgr::playOnce(string name){
fmodsys->playSound(FMOD_CHANNEL_FREE,
soundMap.find(name)->second, true, &fmodchn);
fmodchn->setPosition(0, FMOD_TIMEUNIT_PCM);
fmodchn->setPaused(false);
}
void SoundMgr::playRepeat(string name){
fmodsys->playSound(FMOD_CHANNEL_FREE,
soundMap.find(name)->second, true, &backChn);
backChn->setMode(FMOD_LOOP_NORMAL);
backChn->setPosition(0, FMOD_TIMEUNIT_PCM);
backChn->setPaused(false);
}
...despite the fact that I AM using two separate channels.... am I missing something?