The SInt32 confuses me, as I would think that audio data samples are represented in an array. So how can SInt32 AudioUnitSampleType store the audio data? Or is this basically an array of many SInt32 values?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The whole audio stream is stored as an array of samples, yes. But there are different ways to actually store those samples in memory – signed integer, unsigned integer, floating point and so on. And that is exactly what the
AudioUnitSampleTypeconstants tell you – which format a single sample is stored in. TheSInt32AudioUnitSampleTypeuses a signed (S) integer (Int) that is 32 bits wide (32) to store a single sample. It doesn’t tell you anything else about that audio stream though.