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

Processing sound issue windows 10 and android #45

Closed
markcosmic opened this issue Sep 17, 2019 · 1 comment
Closed

Processing sound issue windows 10 and android #45

markcosmic opened this issue Sep 17, 2019 · 1 comment

Comments

@markcosmic
Copy link

Microsoft may not be your friend. As of the latest windows 10 update; in Java mode a simple soundFile method no longer plays sound. Yet, the same sketch works perfect in the soon to be unsupported windows 7. In windows 10 the sketch doesn’t crash but produces an error that mentions windows 10 not being compatible with certain 8 bit .WAV audio files.
In Android mode in the emulator and on a moto4; the first time I run the app, Processing Sound plays all the little sound files as it should. I quit the app using an exit() method after looking at all the audio files used and closing them if they’re open. The same app now in the background restarted produces no sound. I quit the app as described, and close it in the background, then restart it and the sound now works.
There is still as reported by other a certain sound distortion that can happen when small file sounds (sound effects) are repeatedly played back. Using this sample code:
if(blip.isPlaying){
blip.stop();
}else{
blip.play();
}
On a side note... coding in processing is super fun and rewarding.
Thank you all for making accessible to everyone

@markcosmic
Copy link
Author

I’ve been testing the windows 10 “no sound “ issue with different sound file formats (.WAV, .MP3, .AIF). All produced errors and no sound. Interestingly, the .AIF format produced the least errors.
In testing in Android mode and windows 7 java mode, I found the .AIF format produced no distortion on small file sound effects that are replayed repeatedly within a short (<1/2 second) timeframe; unlike the .WAV format, which seemed to produce much distortion under the same circumstance. I had difficulty with the .MP3 format. I not sure of the compression scheme that Processing.Sound can work with. That’s it for now. Thanks all!

@kevinstadler kevinstadler closed this as not planned Won't fix, can't repro, duplicate, stale Sep 21, 2023
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

2 participants