🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #17538

Re: how to get the "bip" system sound ?

#17538
From: torsten.welches
Date: Thu, 29 Oct 1998 00:00
32 lines
2019 bytes
>The only way to get a sound is from a .AU sound file, AFAIK

java.awt.Toolkit.getDefaultToolkit().beep();
works on systems that know how to beep... <g>

Good luck
Torsten Welches
debis Systemhaus


In article <MPG.10a12827835fee119896a7@forums.borland.com>,
  none@none.com (Max Polk) wrote:
> > I need a very simple sound which would occur every time the user clicks
> > on a button.
> > I'd like to know which is the best way to call the system sound ? Is it
> > possible ? If not, i know i could use the audio package to play a sound
> > from a file, but i would like to avoid that.
>
> You are thinking WINDOWS.  Java is for any platform.  There is no "system
> sound" on many systems, therefore there is no "system sound" in Java.
> The only way to get a sound is from a .AU sound file, AFAIK.
>
> On the non-Borland newsgroups, somebody brought up a similar question
> about getting to the system registry.  Same answer -- that is WINDOWS
> specific.  Some Microsoft flunkie posted a J++ solution, which is a tool
> that doesn't even use the Java language (see
> http://www.afu.com/javafaq.html ).
>

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    
Technical Details
Message-ID: <719bfv$a3i$1@nnrp1.dejanews.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <3636FB9B.A05BD5FB@cs.tut.fi> <MPG.10a12827835fee119896a7@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,c74bc60cba875777
X-Google-Attributes: gidf74b3,public
From: torsten.welches@gerling.de
Subject: Re: how to get the "bip" system sound ?
Date: 1998/10/29
Message-ID: <719bfv$a3i$1@nnrp1.dejanews.com>
X-Deja-AN: 406256090
References: <3636FB9B.A05BD5FB@cs.tut.fi> <MPG.10a12827835fee119896a7@forums.borland.com>
X-Http-Proxy: 1.0 tidecgn0002:81, 1.0 x7.dejanews.com:80 (Squid/1.1.22) for client 193.158.55.74
Organization: Deja News - The Leader in Internet Discussion
X-Article-Creation-Date: Thu Oct 29 09:11:28 1998 GMT
Newsgroups: borland.public.jbuilder.java.language
X-Http-User-Agent: Mozilla/2.0 (compatible; MSIE 3.02; Update a; AK; Windows NT)