我正在尝试AVAudioCompressedBuffer
使用这种格式初始化一个:
<AVAudioFormat 0x2818944b0: 2 ch, 48000 Hz, '.mp3' (0x00000000) 0 bits/channel, 0 bytes/packet, 1152 frames/packet, 0 bytes/frame>
像这样:
AVAudioCompressedBuffer* compressedBuffer = [[AVAudioCompressedBuffer alloc] initWithFormat:format
packetCapacity:NUM_AQ_BUFS];
但我得到了这个例外:
Thread 1: "required condition is false: maximumPacketSize != 0"
我错过了什么?
谢谢