Hello, I’m Japanese,so please forgive my poor English.

I’m trying to use void testApp::audioRequested.

I want to stop the sound I made after the one sounded.

How can I stop the sound? Please tell me!

give a look here

alternatively you could fill your buffer with zeroes

thank you for replying!

I could stop the sound as you said.

And I also want to replay the stopped sound.

bool switch;
if(switch) ofSoundStreamStart();
else ofSoundStreamStop();

I wrote that, but it didn’t work. Where is it wrong?

logically speaking it makes sense; maybe there’s a problem with switch triggering? or with the sound buffer?