Accueil de l'archive Service proposé par Hervé AGNOUX

TOUT -|- TOUT sur le visuel -|- TOUT sur la logistique

Date sent:      	Fri, 24 Nov 2000 15:37:09 +0100 (CET)
From:           	IDS IDS <javadevlpt@yahoo.fr>
Subject:        	beep sound
To:             	java@u-strasbg.fr
Send reply to:  	java@u-strasbg.fr

Petite question bête...
Y a-t-il quelqu'un qui puisse me dire comment on peut
emmettre un "beep sound" en java ?

___________________________________________________________
Do You Yahoo!? -- Pour dialoguer en direct avec vos amis, 
Yahoo! Messenger : http://fr.messenger.yahoo.com

     

Date sent:      	Fri, 24 Nov 2000 15:40:38 +0100
From:           	Rodolphe Godreul <rodolphe@godreul.com>
Send reply to:  	godreul1@bst.bsf.alcatel.fr
To:             	java@u-strasbg.fr
Subject:        	Re: beep sound

Toolkit.getDefaultToolkit().beep() ;

IDS IDS wrote:

> Petite question bête...
> Y a-t-il quelqu'un qui puisse me dire comment on peut
> emmettre un "beep sound" en java ?
>
> ___________________________________________________________
> Do You Yahoo!? -- Pour dialoguer en direct avec vos amis,
> Yahoo! Messenger : http://fr.messenger.yahoo.com

     

Date sent:      	Fri, 24 Nov 2000 15:42:32 +0100
From:           	wmatter <wmatter@nagora.com>
Send reply to:  	wmatter@nagora.com
Organization:   	Nagora Communication
To:             	java@u-strasbg.fr
Subject:        	Re: beep sound



Author: Real Gagnon
                           Author's WebSite:
http://tactika.com/realhome/realhome.html 

                           There are three ways to emit a beep in Java. 

                           1.Use an AU audio file 
                           For Java, AU files need to be created at a
sample rate of 8000. Any sample rate beyound that will not
                           work. 

                           2.Print the ASCII Bell character to the
console 


                                 public class testBeep {
                                   public static main(String args[]) {
                                     // ASCII bell
                                     System.out.print("\0007");
                                     System.out.flush();
                                     }
                                   }

                           3.Starting with JDK 1.1, use the beep method in
the Toolkit 


                                 import java.awt.*;
                                 public class beep {
                                   public static void main(String
args[]) {

Toolkit.getDefaultToolkit().beep();     
                                     }
                                   }

                           Posted On: 3-Jul-1999


C'est fini ! Retour à l'accueil de la pseudo-archive