adding_sound_to_your_application
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| adding_sound_to_your_application [2026/05/06 11:41] – created frchris | adding_sound_to_your_application [2026/05/06 12:17] (current) – [Making and Editting your own sounds] frchris | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| Here is a Java method to play a short bell sound effect that is in a wav format. | Here is a Java method to play a short bell sound effect that is in a wav format. | ||
| - | You will need the file [[https:// | + | You will need the file [[https:// |
| <code java > | <code java > | ||
| Line 14: | Line 14: | ||
| try | try | ||
| { | { | ||
| - | bell = AudioSystem.getClip(); | + | |
| bell.open(AudioSystem.getAudioInputStream(bellFile)); | bell.open(AudioSystem.getAudioInputStream(bellFile)); | ||
| bell.start(); | bell.start(); | ||
| Line 24: | Line 24: | ||
| } | } | ||
| </ | </ | ||
| + | |||
| + | ===== Getting sound effect files to play ===== | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | |||
| + | ===== Making and Editting your own sounds ===== | ||
| + | |||
| + | I recommend [[https:// | ||
adding_sound_to_your_application.1778082073.txt.gz · Last modified: by frchris
