Recording with AudioQueue and Monotouch static sound

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-01 19:53:18

ok, this might be too late, but I had the same problem with hearing garbage sound only and found the solution.

You cannot read the audio data directly from e.IntPtrBuffer. This pointer is a pointer to a AudioQueueBuffer object and not to the audio data itself. So to read the audio data you can make use of the e.UnsafeBuffer which gives you the access to this object and use its AudioData pointer. This is a IntPtr which you can cast (in unsafe context) to a byte* or short* and you have your audio data.

Best regards

Alex

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!