LoginSignup
0
1

More than 5 years have passed since last update.

c++ builder > [未解決] beep音 > Volumeが10%程度にしかならない / Beep(3000,1000) > 同期処理

Last updated at Posted at 2016-01-07

http://qiita.com/7of9/items/3471ff39fccd75d08434
で調べたbeep音を鳴らす実装をしてみた。

Volumeが10%程度にしかならない。

qiita.png

Beep(3000,1000);

参考 http://www.papy.in/bbs/delphi/201102/11020008.html

Beep(3000, 1000);というような関数実行例があった。

試してみたところ、音量が50%になるようになった。

しかしながら
https://msdn.microsoft.com/ja-jp/library/cc428923.aspx
を見ると

スピーカから単純な音を鳴らします。この関数は同期で実行されます。音が鳴り終わるまでは、呼び出し側へ制御を返しません。

同期処理というのが使用をためらわせる。

PlaySound();

PlaySound()関数というものでwavファイルを再生を試みたが、音が聞こえなかった。

delphiでたくさんの実装例があるのだが、よくわからない。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1