在J2SE上播放哔声 [英] Playing beep sound on J2SE

查看:70
本文介绍了在J2SE上播放哔声的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法用java播放安装在主板上的提示音(小音箱)?

就像我们在C语言中所说的那样:\ a"性格........我忘记了在C中播放它的代码....我不确定......

Is there a way to play the alert tone(small speaker) installed on the motherboard from java?

Like the way we call it in C "\a" character........ i forgot whats the code to play it in C.... im not sure......

推荐答案

展开 | 选择 | Wrap | 行号


展开 | < span class =codeLinkonclick =selectAll(this);>选择 | Wrap | 行号


要使用主板扬声器发出蜂鸣声,请使用:
To beep with the mainboard speaker, use this:
展开 | 选择 | Wrap | 行号


这篇关于在J2SE上播放哔声的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆