Interactive Java: Sound-Infused Movable Images
Budget: $10 – $30 USD
I want my current Java code to be augmented with the code to add sound.
I currently have a Java app that has four images that I can freely move around the screen.
I want to attach wav files to these four movable images.
These images are currently placed at the bottom of the screen.
I want to click on the image to start playing a WAV file in a loop until I click on the image to stop playing a wave file.
I want to drag the image from the bottom of the screen to three equal sections at the top of the screen, these three equal sections correspond to left, center, and right.
When I drag the image to the left section, the sound is played fully panned to the left.
When I drag the image to the center section, the sound is played in the center with no panning.
When I drag the image to the right section, the sound is played fully panned to the right.
just want to add a WAV file sound to each speaker icon and pan the sound with the image when move it with the mouse.
I downloaded Java SE Dev Kit 21.0.1 (64-bit).
You can attach these four, one to each speaker.
It does not matter which speaker
It refers to "balance" control when controlling sounds in stereo. Like on your car radio system, you can turn the balance to the left or right to play the sound more to the left or right speaker.
Java uses pan() to do this.
thank you.
I currently have a Java app that has four images that I can freely move around the screen.
I want to attach wav files to these four movable images.
These images are currently placed at the bottom of the screen.
I want to click on the image to start playing a WAV file in a loop until I click on the image to stop playing a wave file.
I want to drag the image from the bottom of the screen to three equal sections at the top of the screen, these three equal sections correspond to left, center, and right.
When I drag the image to the left section, the sound is played fully panned to the left.
When I drag the image to the center section, the sound is played in the center with no panning.
When I drag the image to the right section, the sound is played fully panned to the right.
just want to add a WAV file sound to each speaker icon and pan the sound with the image when move it with the mouse.
I downloaded Java SE Dev Kit 21.0.1 (64-bit).
You can attach these four, one to each speaker.
It does not matter which speaker
It refers to "balance" control when controlling sounds in stereo. Like on your car radio system, you can turn the balance to the left or right to play the sound more to the left or right speaker.
Java uses pan() to do this.
thank you.
Related categories:
C Programming
Business, Accounting, Human Resources & Legal
JavaScript
JavaFX
Software Architecture