我正在使用 Core Audio SDK 文档中提供的 EXTAudioFileReadTest 应用程序,我正在尝试从 mData 缓冲区中获取所有浮点值,以便我可以用它们绘制波形。
目前,我正在打印单通道的浮点值,这就是我在控制台中得到的:
2010-09-10 19:22:43.360 ExtAudioFileReadTest[71828:a0f] 0.127136
2010-09-10 19:22:43.360 ExtAudioFileReadTest[71828:a0f] -0.057033
2010-09-10 19:22:43.3828 ExtAudioFileReadTest: ] -0.146455
2010-09-10 19:22:43.360 Extaudiofilereadtest [71828:A0F] 0.090759
2010-09-10 19:22:43.360 ExtaudiiofiofileReadtest [71828:A0F] 0.240837 2010 2010-2010.2010.20.12.12
: :a0f] -0.072719
2010-09-10 19:22:43.361 ExtAudioFileReadTest[71828:a0f] -0.258782
2010-09-10 19:22:43.361 ExtAudioFileReadTest[71828:a0f] -0.063972
1920-09-1 43.361 ExtAudioFileReadTest[71828:a0f] 0.088692
2010-09-10 19:22:43.361 ExtAudioFileReadTest[71828:a0f] 0.153571
2010-09-10 19:22:43.361 ExtAudioFileReadTest[71828:a0f] 0.080644
2010-09-10 19:22:43.383 ExtAudioFileReadTest[71828:a0f] -0.087060
2010-09-10 19:22:43.3828 ExtAudioFileReadTest: ] 0.196455
2010-09-10 19:22:43.383 ExtAudioFileReadTest[71828:a0f] 0.167777
2010-09-10 19:22:43.383 ExtAudioFileReadTest[71828:a0f] -0.192430
2010-09-10 19:22:43.383 ExtAudioFileReadTest[71828 :a0f] -0.209936
2010-09-10 19:22:43.383 ExtAudioFileReadTest[71828:a0f] 0.012049
2010-09-10 19:22:43.383 ExtAudioFileReadTest[71828:a0f] 0.110493 1920-09:38 ExtAudioFileReadTest[71828:a0f] 0.110493 1920-09
:3-1 [71828:a0f] 0.150715
2010-09-10 19:22:43.384 ExtAudioFileReadTest[71828:a0f] 0.016413
2010-09-10 19:22:43.384 ExtAudioFileReadTest[71828:a0f] -0.056843
2010-09-10 19:22:43.384 ExtAudioFileReadTest[71828:a0f] 0.206117
2010-09-10 19:22:43.3828 ExtAudioFileReadTest: ] 0.020673
2010-09-10 19:22:43.384 ExtAudioFileReadTest[71828:a0f] -0.561129
2010-09-10 19:22:43.384 ExtAudioFileReadTest[71828:a0f] -0.184265
2010-09-384ExtAudio:2010-09-3840 19 71828:a0f] 0.620910
2010-09-10 19:22:43.385 ExtAudioFileReadTest[71828:a0f] 0.309018
2010-09-10 19:22:43.385 ExtAudioFileReadTest[71828:a0f] -0.3971634
9:20:-0.3971634 2010:-0.3971634 ExtAudioFileReadTest[71828:a0f] -0.238362
2010-09-10 19:22:43.385 ExtAudioFileReadTest[71828:a0f] 0.125136
2010-09-10 19:22:43.385 ExtAudioFileReadTest[71828:a0f] 0.139757
2010-09-10 19:22:43.385 ExtAudioFileReadTest[71828:a0f] -0.023419
2010-09-10 19:22:43.3828 ExtAudioFileReadTest: ] -0.142903
2010-09-10 19:22:43.385 extaudiofilereadtest [71828:a0f] 0.041068
2010-09-10 19:22:43.386 expaudiofileReadtest [71828:A0F] 0.252621210101010-22012.2.2.2.2.2.2.2ymeant
estirestir :a0f] -0.002240
2010-09-10 19:22:43.386 ExtAudioFileReadTest[71828:a0f] -0.261686
2010-09-10 19:22:43.386 ExtAudioFileReadTest[71828:a0f] -0.105050
1920-09-1 43.386 ExtAudioFileReadTest[71828:a0f] 0.072798
2010-09-10 19:22:43.386 ExtAudioFileReadTest[71828:a0f] 0.141572
2010-09-10 19:22:43.386 ExtAudioFileReadTest[71828:a0f] 0.110190
我想我很困惑......因为我期待找到某种类型的电压样本而不是 -1 和 1 之间的数字。这些值实际上意味着什么?将这些值转换为介于 0 和 1 之间的某个上限/下限的好公式是什么?
提前致谢。我一直在到处搜索,在任何地方都找不到这些信息……尤其是在文档中。