【发布时间】:2017-12-24 15:40:25
【问题描述】:
我目前正在查看 PortAudio 代码示例,尤其是 paex_record.c 代码示例。
在看起来很老式的预处理器指令中,有一个typedef PaSampleType,它采用portaudio.h中定义的PaSampleFormat值
我知道什么是采样率,但我不知道什么是采样格式。
在头文件中定义为
/** The sample format of the buffer provided to the stream callback,
a_ReadStream() or Pa_WriteStream(). It may be any of the formats described
by the PaSampleFormat enumeration.
*/
但这并没有让我更清楚。
如果有人能阐明这个概念以及它如何应用于我的案例,我将不胜感激。
谢谢,
【问题讨论】:
标签: c++ audio core-audio portaudio