我想用C语言编写关于声音方面的函数 ,C函数里有哪些与声音有关的函数?

来源:百度知道 编辑:UC知道 时间:2024/06/03 16:07:17
大家帮忙发过来一下,最好是有例子的,不要弄链接,有空也可发到我的油箱258937171@qq.com,谢谢各位啦..

函数名: sound
功 能: 以指定频率打开PC扬声器
用 法: void sound(unsigned frequency);
程序例:

/* Emits a 7-Hz tone for 10 seconds.
Your PC may not be able to emit a 7-Hz tone. */
#include <dos.h>

int main(void)
{
sound(7);
delay(10000);
nosound();
return 0;
}

其他的可用c来调用api实现.
就知道这些