miei record app due file audio uno per uno usando AVAudioRecorder con i parametri audio:impostazioni audio di uscita quando accodare un file AAC a un altro
NSDictionary *outputSettings = [NSDictionary dictionaryWithObjectsAndKeys:
[NSNumber numberWithInt: kAudioFormatMPEG4AAC], AVFormatIDKey,
[NSNumber numberWithFloat:44100.0], AVSampleRateKey,
[NSNumber numberWithInt:1], AVNumberOfChannelsKey,
[NSNumber numberWithInt:AVAudioQualityMin], AVEncoderAudioQualityKey,
[NSNumber numberWithInt:16],AVEncoderBitDepthHintKey,
[NSNumber numberWithInt:128000], AVEncoderBitRateKey,
nil];
ho bisogno di aggiungere file2 alla fine del file1. Sto usando una soluzione come there (aggiungendo due file audio creando un AVMutableCompositionTrack dopo aver aggiunto i due file ed esportato la composizione usando il metodo exportAsynchronouslyWithCompletionHandler:
di AVAssetExportSession).
Funziona, ma ho due file di input 128kbs 44,1kHz mono a 16 bit e il formato di file di output è: 219,4kbs 44,1kHz stereo a 16 bit.
È possibile configurare i parametri del file audio di output per AVAssetExportSession?