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

setVolume() not available for AudioPlayer #52

Closed
sunwangshu opened this issue Dec 11, 2015 · 5 comments
Closed

setVolume() not available for AudioPlayer #52

sunwangshu opened this issue Dec 11, 2015 · 5 comments

Comments

@sunwangshu
Copy link

processing 3.0.1, Minim 2.2.2

@sunwangshu
Copy link
Author

does not support mp3 file?

@ddf
Copy link
Owner

ddf commented Dec 14, 2015

Are you on Windows, Mac, Linux? Can you provide the audio file that is failing to provide a volume control? You might also try using setGain instead.

@sunwangshu
Copy link
Author

Thanks, you can download my test here:
https://www.dropbox.com/s/32ozcfc5q11e4uu/minimPlayer_3.zip?dl=0

When you pressed 'A', 'S', 'D' you will hear three different tones. I tried to add .setVolume() before .play() and then it says "volume is not supported".

@sunwangshu
Copy link
Author

BTW I was trying to apply this library to Processing 3. AudioPlayer.setGain() seems to have the same problem. Beside these they all worked magically and it is truly a lifesaver for my final. Thanks so much!

@ddf
Copy link
Owner

ddf commented May 30, 2017

Just tested this in Processing 3.3.3 on Windows 10. I got the "volume is not supported" message, but using setGain did work. The availability of gain and volume is going to be JRE-dependent, so I can't fix this until I rewrite these controls.

@ddf ddf closed this as completed May 30, 2017
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