Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
SInt32 让我感到困惑,因为我认为音频数据样本是在数组中表示的。那么 SInt32 AudioUnitSampleType 是如何存储音频数据的呢?或者这基本上是一个包含许多 SInt32 值的数组?
整个音频流存储为样本数组,是的。但是有不同的方法可以将这些样本实际存储在内存中——有符号整数、无符号整数、浮点数等等。这正是AudioUnitSampleType常量告诉您的内容 - 单个样本存储在哪种格式中。使用32 位宽 ( )SInt32AudioUnitSampleType的有符号 ( S) 整数 ( ) 来存储单个样本。但是,它并没有告诉您有关该音频流的任何其他信息。Int32
AudioUnitSampleType
SInt32AudioUnitSampleType
S
Int
32