我正在尝试在基于 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/