derekli66 / Learning-Core-Audio-Swift-SampleCode

Swift sample code for the book, Learning Core Audio. The original sample code was written in C/Objective-C but I tried to make it in Swift version.
MIT License
156 stars 27 forks source link

Can I ask a question about the book? #6

Open csmagics opened 1 year ago

csmagics commented 1 year ago

• mSampleRate is defined to be the number of samples per channel per second of uncompressed data. This makes it equal to the number of frames per second, which means you can multiply it by mFramesPerPacket to determine packet length in seconds.

The book describes it this way inside, but this multiplication, I feel, is wrong. Frames per second, multiplied by the number of frames per packet, feels like it doesn't make any sense, unless it's a division.