With ofxSingleSoundPlayer and example-matrixMixer:
I added to ofApp.cc loadFolder()
// players[startIndex + i]->setLoop(true);
players[startIndex + i]->setLoop(false);
if(!players[startIndex + i]->isLooping()){
ofAddListener(players[startIndex + i]->endEvent, this, &ofApp::playerEnded);
}
and
void ofApp::playerEnded(size_t & id){
ofLog()<<"playerEnded() "<<id;
players[id]->play();
}
The endEvent gets called a couple of times for some of the players and eventually I hear some piping noise and
the app crashes
[notice ] playerEnded() 1
[notice ] playerEnded() 3
[notice ] playerEnded() 2
[notice ] playerEnded() 3
[notice ] playerEnded() 4

With ofxSingleSoundPlayer and example-matrixMixer:
I added to ofApp.cc loadFolder()
and
The endEvent gets called a couple of times for some of the players and eventually I hear some piping noise and
the app crashes