【提问】怎么通过程序让电脑发出报警声音
具体就是通过Java写一段代码,运行之后让电脑发出报警声音,不管是通过主机箱还是喇叭都行,求一个完整代码?
[最优解释]
Google一下Java beep,这个用Java看起来不是很好搞
http://www.rgagnon.com/javadetails/java-0001.html
[其他解释]
写个死循环把内存用到报警。
[其他解释]
(Windows) The sound used is determined from the setting found in Control Panel/Sounds and Devices/Sounds/Sound Scheme/"Default Beep". If no sound file is selected then the beep() will be a silence.
是让设定控制面板下面哪个文件的声音文件呢,看不懂