This site requires JavaScript, please enable it in your browser!
Greenfoot back
mborders7786
mborders7786 wrote ...

2012/11/11

Book Scenario - Piano

mborders7786 mborders7786

2012/11/11

#
Trying to change the sound of the black keys. I've got the new .wav files in the correct folder but every time I bring up the scenario I get this:
Could not play sound file: file:/F:/Greenfoot/Greenfoot/scenarios/book-scenarios/chapter05/piano-complete/sounds/A%23.wav If you have a sound card installed, check your system settings. java.lang.IllegalArgumentException: No line matching interface SourceDataLine supporting format PCM_SIGNED 44100.0 Hz, 24 bit, stereo, 6 bytes/frame, little-endian is supported.
SPower SPower

2012/11/11

#
Does your scenario continue?
mborders7786 mborders7786

2012/11/11

#
It does. The white keys will play the associated sound. The black keys will not.
SPower SPower

2012/11/11

#
Then it doesn't really matter, right? And I've got that problem too, and it's not really a problem, it's just annoying. All it does is print a caught exception, which is useless in my opinion.
mborders7786 mborders7786

2012/11/11

#
Except it is a problem. The black keys play no sound whatsoever, and I need them to.
SPower SPower

2012/11/11

#
But you just said this sound was for the white keys, didn't you?
mborders7786 mborders7786

2012/11/11

#
I'm changing the sound of the BLACK keys. I've put the new .wav files in the proper folder but get that error whenever I open the scenario.
mjrb4 mjrb4

2012/11/12

#
It seems the new wav files aren't in a format your system can play directly - this happens sometimes. You may want to try converting them to mp3s (use Audacity) and try again.
You need to login to post a reply.