Replies: 2 comments
-
|
I've modified SFBCoreAudioEncoder.mm and SFBAudioEncoder.h to add the following keys for CoreAudioEncoder: SFBAudioEncodingSettingsKey const SFBAudioEncodingSettingsKeyCoreAudioFramesPerPacket = @"Frames per Packet"; @sbooth Please check the attached file to see if the modification is appropriate. |
Beta Was this translation helpful? Give feedback.
-
|
I don't see any problems per se with the code you posted but I am not sure it's necessary. At a minimum all fields in the Using the following settings encoder.settings = [
.coreAudioFileTypeID: kAudioFileM4AType,
.coreAudioFormatID: kAudioFormatMPEG4AAC,
]I am able to create a working M4A file: What file type are you generating? Could you post a non-working example? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When converting audio to AAC, the encoder's mFramesPerPacket should be 1024, how to set this in encoder's settings? can it be set by .coreAudioAudioConverterPropertySettings ?
also, for AAC audio, the following properties in AudioStreamBasicDescription should be set:
mBitsPerChannel = 0 // Not used for AAC
mBytesPerFrame = 0 // Not used for AAC
mBytesPerPacket = 0 // Variable for AAC
Beta Was this translation helpful? Give feedback.
All reactions