且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

记录到WAV文件

更新时间:2023-02-07 18:44:22

返回的错误代码snd_ *函数为负数。
有一些函数可以返回一个正值来表示成功(例如, snd_pcm_readi 返回帧数)。

Error codes returned by snd_* functions are negative. There are functions that can return a positive value to indicate success (e.g., snd_pcm_readi returns the number of frames).