国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學(xué)院 > 開發(fā)設(shè)計(jì) > 正文

在VB5中如何使機(jī)箱內(nèi)的小喇叭發(fā)出不同的聲音?

2019-11-18 17:36:41
字體:
供稿:網(wǎng)友
->-chengdx
回答1:
Mmsound.drv是小喇叭的系統(tǒng)接口,很多API的書都有用法介紹
-219張晶
回答2:
使用VB中的beep語句,但這只能發(fā)出一種聲音。如果想發(fā)出不同聲音,可以
使用API函數(shù)。詳情如下:(摘自VB-Helper)
UsetheBeepAPIfunction.

Thisexampledemonstratestwointerestingthings.First,itshowshowtomakeabeepofanyfrequencyanddurationratherthanusingthestandardtoneyougetwiththeBeepstatement.

Second,notethattheBeepAPIfunctionhasthesamenameasVisualBasic'sBeepstatement.Todifferentiatethem,youcanassignanewnametotheBeepAPIfunctioninitsDeclarestatement.Itisknownas"Beep"inthelibrary(theAliasstatement)butitisknownasAPIBeeptothe
PrivateSubCommand1_Click()
DimfrequencyAsLong

frequency=CLng(txtFrequency.Text)
APIBeepfrequency,500
EndSub
-Prisoner->
->


發(fā)表評論 共有條評論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 扎鲁特旗| 五河县| 靖远县| 佛山市| 唐河县| 招远市| 邵阳县| 读书| 平武县| 星座| 耿马| 深泽县| 武穴市| 林州市| 普定县| 北京市| 苗栗市| 南郑县| 东兰县| 湘潭县| 丰城市| 澎湖县| 宁德市| 凌海市| 犍为县| 木里| 贞丰县| 临西县| 红原县| 黎川县| 台江县| 内江市| 建始县| 错那县| 广州市| 扎赉特旗| 萨迦县| 荃湾区| 莱阳市| 饶阳县| 贵港市|