Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weird sound issue when quitting whilst a looped sound is playing with csnd #199

Closed
videah opened this issue Oct 25, 2015 · 4 comments
Closed

Comments

@videah
Copy link

videah commented Oct 25, 2015

Having a looped sound playing with csnd when a homebrew application is quitting causes some funky behaviour.

When loading other homebrew, high pitched noises can be heard, and loading other homebrew that uses sound can cause distortion.

Loading the homebrew the looped sound originated from causes the sound to be played, even if it shouldn't be.

I don't have good footage, but @shutterbug2000 recorded a similar issue with BreadBox https://www.youtube.com/watch?v=BPf4AUWewqM

Even stopping all channels on exit doesn't fix it.

@Rinnegatamante
Copy link
Contributor

Same thing happens with old CSND wrapper used by lpp-3ds. It's a not-very-much recent issue appeared with some ctrulib update i think.

@Arisotura
Copy link
Contributor

Pretty sure the cause is that the homebrew forgets to stop that channel before exiting. Thus it continues playing whatever is where it's set to read from.

@videah
Copy link
Author

videah commented Oct 29, 2015

But I'm stopping all channels on exit, and the problem still happens.

@ghost
Copy link

ghost commented Jan 3, 2016

It shouldn't happen here if I understand your problem,you need to call audio_stop() twice to fix this if you use this file loading method.

@fincs fincs closed this as completed Dec 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants