roymacdonald / ofxSoundObjects

Simple yet super powerful modular sound architecture for openFrameworks.
Other
90 stars 26 forks source link

setMultiPlay(true); #34

Closed GvBon closed 3 years ago

GvBon commented 3 years ago

Overall: multichannel works great. Thanks for all your effort that you put in! But my issue: When setting multiplay to true and I overlap sounds the sound that outputs seems to get stuck repeating the same milliseconds over and over very fast. I am probably using it wrong?

sound1[i] = make_shared<ofxSoundPlayerObject>();
string ff1 = sound1Filepath;
sound1[i]->load(ff1);

auto chans1 = sound1[i]->getSoundFile().getNumChannels();//get if stereo or not
vector<int> v1;
v1.resize(chans1);
for (int j = 0; j < v1.size(); j++) {
    v1[j] = j + count;
}
ofxSoundObject& sound1Output = output.getOrCreateChannelGroup(v1);
sound1[i]->connectTo(sound1Output);
sound1[i]->setMultiPlay(true); //does not work. gets a mess.
roymacdonald commented 3 years ago

Hi. Thanks for your kind words. Can you send me an example code with which you se this happening? What platform are you running this on? Cheers El El mié, 30 de dic. de 2020 a la(s) 14:40, GvBon notifications@github.com escribió:

Overall: multichannel works great. Thanks for all your effort that you put in! But my issue: When setting multiplay to true and I overlap sounds the sound that outputs seems to get stuck repeating the some milliseconds over and over very fast. I am probably using it wrong?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/roymacdonald/ofxSoundObjects/issues/34, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHOAHUCQPJPNZU26WPEKHLSXOT65ANCNFSM4VOZFXCA .

-- Roy J. Macdonald

roymacdonald commented 3 years ago

Sorry. I answered from the email and did not see the code you placed. I would say that it is correct. I’ll check it later and let you know

GvBon commented 3 years ago

Thanks! Let me know! & happy newyear!

davidbistolas commented 3 years ago

Having the same issue here, on both MacOSX and Linux/arm, using example-soundPlayerObject. (change play() to setMultiPlay(), and play() call on keydown)

Any luck?

roymacdonald commented 3 years ago

@davidbistolas @GvBon I fixed this issue. sorry for not solving it before. Please test it and let me know if it works for you.