c - linux 中 C 语言的 sound() 头文件?

标签 c linux

我正在尝试在基于 Linux 的系统或操作系统中使用 C 语言的这些函数: 声音() 没有声音() 交易()

我可以使用 dos.h 头文件在 Windows 操作系统上执行它,但 dos.h 无法在基于 Linux 的系统上运行。

我尝试了unistd.h,但没有成功。我也尝试了 sound.h,未找到文件头错误。我应该包含哪个头文件?

最佳答案

您可以尝试使用这个sndlib library

sndlib is a collection of sound file and audio hardware handlers written in C and running currently in various Unices via OSS or ALSA, Mac OSX, and on old Windows systems. It provides relatively straightforward access to many sound file headers and data types, and most of the features of the audio hardware.

关于c - linux 中 C 语言的 sound() 头文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18931084/

相关文章:

linux - 在终端 session 中复制/粘贴

被 rpcgen 示例代码搞糊涂了

C- fgets() 删除用户输入

管脚映射代码

linux - 在 QT5 中使用 qtmotifextension

linux - Shell - 将变量内容写入文件

c - 将 C 代码编译为裸机(树莓派)时我做错了什么?

c - GTK:将函数调用委托(delegate)给主线程

linux - 如何给串口驱动添加PCI ID?

linux - 将文件内容转换为大写