wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes providing a default tone for my alarm application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "providing a default tone for my alarm application" Watch "providing a default tone for my alarm application" New topic
Author

providing a default tone for my alarm application

sampath surineni
Greenhorn

Joined: Apr 02, 2012
Posts: 29

Hi Friends.

I am coding an alarm application for the first time. I want to include a default tone for my application in case user did not choose a custom tone.

Please can someone tell me how to do this.

Thank you..
Winston Gutkowski
Bartender

Joined: Mar 17, 2011
Posts: 8419
    
  23

sampath surineni wrote:I am coding an alarm application for the first time. I want to include a default tone for my application in case user did not choose a custom tone...

So you already have code to play custom tones then, yes? Just choose one of them. Alternatively, there are plenty of .wav libraries around. Download one and include it in your jar.

Google is your friend.

Winston


Isn't it funny how there's always time and money enough to do it WRONG?
Articles by Winston can be found here
sampath surineni
Greenhorn

Joined: Apr 02, 2012
Posts: 29

Winston Gutkowski wrote:
sampath surineni wrote:I am coding an alarm application for the first time. I want to include a default tone for my application in case user did not choose a custom tone...

So you already have code to play custom tones then, yes? Just choose one of them. Alternatively, there are plenty of .wav libraries around. Download one and include it in your jar.

Google is your friend.

Winston


Thanks for the reply Mr.Winston. I'm new to coding and I don't know in which folder of my project I have to include it. I'm using netbeans and there are src and libraries folders. should I include it in one of these of create a new one.
Even if I include it in one of these folders what would be its address to access.
Jan Hoppmann
Ranch Hand

Joined: Jul 19, 2010
Posts: 147

sampath surineni wrote:Thanks for the reply Mr.Winston. I'm new to coding and I don't know in which folder of my project I have to include it. I'm using netbeans and there are src and libraries folders. should I include it in one of these of create a new one.
Even if I include it in one of these folders what would be its address to access.


I always put resources such as sound files or images into a resource folder named 'resources'.


Life is full of choices. Sometimes you make the good ones, and sometimes you have to kill all the witnesses.
sampath surineni
Greenhorn

Joined: Apr 02, 2012
Posts: 29

Jan Hoppmann wrote:
sampath surineni wrote:Thanks for the reply Mr.Winston. I'm new to coding and I don't know in which folder of my project I have to include it. I'm using netbeans and there are src and libraries folders. should I include it in one of these of create a new one.
Even if I include it in one of these folders what would be its address to access.


I always put resources such as sound files or images into a resource folder named 'resources'.


Thank you very much Mr.Jan Hoppmann. You cleared my doubt. Can you tell me how to address them in the project. what is the path of them
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4664
    
    5

This tutorial page is about images, not sound files, but the principle remains the same:
Loading Images Using getResource


luck, db
There are no new questions, but there may be new answers.
sampath surineni
Greenhorn

Joined: Apr 02, 2012
Posts: 29

Darryl Burke wrote:This tutorial page is about images, not sound files, but the principle remains the same:
Loading Images Using getResource


Thank you very much Mr.Burke you solved my problem
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: providing a default tone for my alarm application