User Tools

Site Tools


adding_sound_to_your_application

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
adding_sound_to_your_application [2026/05/06 11:41] – created frchrisadding_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://mathorama.com/apcs/Main/bell.wav|bell.wav]]+You will need the file [[https://mathorama.com/apcs/uploads/Main/bell.wav|bell.wav]]
    
 <code java > <code java >
Line 14: Line 14:
   try    try 
   {   {
-      bell = AudioSystem.getClip();+      Clip bell = AudioSystem.getClip();
       bell.open(AudioSystem.getAudioInputStream(bellFile));       bell.open(AudioSystem.getAudioInputStream(bellFile));
       bell.start();       bell.start();
Line 24: Line 24:
 } }
 </code> </code>
 +
 +===== Getting sound effect files to play =====
 +  * [[https://quicksounds.com]]
 +  * [[https://freesound.org]]
 +  * [[https://pixabay.com/sound-effects/]]
 +  * [[https://www.zapsplat.com]]
 +
 +===== Making and Editting your own sounds =====
 +
 +I recommend [[https://sourceforge.net/projects/audacity/|Audacity]] 
adding_sound_to_your_application.1778082073.txt.gz · Last modified: by frchris

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki