gpt4 book ai didi

iOS:使用音频单元的 iLBC 编解码器

转载 作者:行者123 更新时间:2023-11-29 12:10:20 24 4
gpt4 key购买 nike

现在我正在我的 Audio Unit proc 中获取 PCM 音频,它将传入的音频缓冲区数据写入循环缓冲区以在其他地方使用。

现在我想获取 iLBC 音频数据,所以我将 AudioStreamBasicDescription mFormatID 更改为 kAudioFormatiLBC

但现在它崩溃了:

Error: StreamFormat kAudioUnitErr_FormatNotSupported

那么iLBC应该如何正确使用Audio Units实现呢?

非常感谢!

最佳答案

试一试

    mRecordFormat.mSampleRate = 8000.0;
mRecordFormat.mFormatID = kAudioFormatiLBC;
mRecordFormat.mChannelsPerFrame = 1;

关于iOS:使用音频单元的 iLBC 编解码器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33614276/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com