I have a new problem related to my newly created ExtAudioFile. After setting the client data format, I move on and access the AudioConverter:
size = sizeof(converter); err = ExtAudioFileGetProperty(audioFileID, kExtAudioFileProperty_AudioConverter, &size, &converter);
No problem. Then I set the converters bit rate and quality:
err = AudioConverterSetProperty(converter, kAudioConverterEncodeBitRate, sizeof(value), &rate); err = AudioConverterSetProperty(converter, kAudioConverterCodecQuality, sizeof(value), &quality);
Again, no problem. Finally, I send a NULL ConverterConfig CFArray to force the associated AudioConverter to update:
err = ExtAudioFileSetProperty(audioFileID, kExtAudioFileProperty_ConverterConfig, 0, NULL);
and bamm! the code crashes. I also tried creating an empty CFArray and passing that in... same result. What am I missing?
Ethan...
|