Questions tagged [extaudiofile]
32 questions
1
vote
1 answer
ExtAudioFile - how to set meta data
I am writing audio content to a m4a file with ExtAudioFileWriteAsync and it is working perfectly. However, I would also like to add meta data to the exported file.
Is this at all possible? If so, how?
Any help would be much appreciated.

Lehel Medves
- 527
- 1
- 5
- 15
1
vote
1 answer
How to get the bit rate of existing MP3 or AAC in iOS?
I want to display the bitrate of existing MP3 files and AAC files to the user, but I don't know how to correctly extract the bitrate of these files.
So far, I've tried to get the AudioConverterRef pointer of the ExtAudioFileRef and then I wanted to…

Daniel S.
- 6,458
- 4
- 35
- 78
1
vote
1 answer
ExtAudioFileConvert questions
I'm making some progress on taking a compressed (mp3) sound and saving it as PCM. In addition, I wanted to split the original file into chunks that are 2 seconds long, within the same process. I seem to be successful, but I am a little confused as…

mahboudz
- 39,196
- 16
- 97
- 124
1
vote
1 answer
converting from AudioUnit format for ExtAudioFileWrite
I have a an AUGraph made of entirely of Apple AudioUnits - DLSSynth, Delay, Stereo Mixer. I am trying to capture the output of this into an ExtAudioFile. My issue is that I think I need to convert from the AudioUnit format to a file format that…

olynoise
- 2,016
- 2
- 19
- 32
1
vote
1 answer
Using ExtAudioFileWrite to write at the end of a file
I'm trying to open a file and append data to it using ExtAudioFileWrite. Now, creating/initial writing(on creation)/converting works just fine, but unfortunately I can't seem to be able to open the file for writing afterwards. There is only one…

Rad'Val
- 8,895
- 9
- 62
- 92
1
vote
2 answers
Massive memory spike when reading audio file
I am currently reading audio floats from a file using Dirac's (OSStatus) readFloatsConsecutive:(SInt64)numFrames intoArray:(float**)audio function. I create a pointer of float **
arrayToFill = malloc(channelCount * sizeof(float*));
for(int i = 0; i…

some_id
- 29,466
- 62
- 182
- 304
0
votes
1 answer
ExtAudioFileWrite in iOS failing with error code -66560
I'm using ExtAudioFileWrite to write audio data into a file. But when it is interrupted by an alarm, although the file is saved, I get this error.
What kind of error is this?

Namratha
- 16,630
- 27
- 90
- 125
0
votes
1 answer
Proper way to declare ExtAudioFileRef in swift 5 for macOS
I have been working on an audio application where I can seek to a specific point in an ExtAudioFile and load a specific number of frames that represent a particular length (time) of playback into an AVAudioPCMBuffer and start playing it. If the…

SouthernYankee65
- 1,129
- 10
- 22
0
votes
1 answer
AVAudioPlayer cannot play Audio (.wav) file written using ExtAudioFileWriteAsync
I used ExtAudioFileWriteAsync to write the recorded audio using RemoteIO into a .wav file. AVAudioPlayer is not playing the saved audio file. The audio file plays only on VLC media player but not in QuickTime or any other media players.
var player =…

atik
- 798
- 10
- 18
0
votes
0 answers
EXC_BAS_ACCESS in Core Audio - writing mic data to file w/ Extended AudioFile Services
I am attempting to write incoming mic audio to a file. Because the audio samples are delivered 4096 frames (the set frame rate for my project) at a time in a time-critical callback I cannot simply write the bytes to a file with AudioFileWriteBytes.…

Alexander Bollbach
- 649
- 6
- 20
0
votes
1 answer
Comparing should-be identical AAC audio files - timestamp?
I have problems encoding AAC/M4A audio files on iPhone (iOS) and in simulator in a way so that
mono/stereo and
the track duration
are recognized correctly by external players like VLC.
For closing in on the problems on various devices, I have…

Daniel S.
- 6,458
- 4
- 35
- 78
0
votes
1 answer
Does AVAudioFormat initStandardFormatWithSampleRate return incorrect stream description?
When trying to write a PCM audio file with ExtAudioFileCreateWithURL, I get an 'fmt?' err when using a 2-channel audio format (Mac OS X, SDK 10.10)
I create the audio format with
[[AVAudioFormat alloc] initStandardFormatWithSampleRate:sampleRate…

Zaggo
- 786
- 1
- 6
- 14
0
votes
0 answers
Core Audio ExtAudioFile using Client Channel Layout
I’m trying to make use of ExtAudioFile's automatic channel layout mapping, but it doesn’t seem to work as I expected.
Here’s what I do:
I open a 6-Channel WAVE file with ExtAudioFileOpenURL()
set the client data format property…

Sebastian
- 904
- 1
- 8
- 16
0
votes
1 answer
Does the ExtAudioFile API ever use hardware to decode audio?
I am using the ExtAudioFile interface to decode audio, and would like to know whether it ever makes use of hardware-assisted audio decoding.
The docs for the kExtAudioFileProperty_CodecManufacturer property say:
Use this property in iOS to choose…

leremjs
- 973
- 1
- 9
- 25
0
votes
1 answer
Error setting ClientDataFormat
I’m having some trouble encoding certain configurations of multi-channel Apple Lossless files. I have no problems with 2, 4 and 6 channel configurations, however I’m running into trouble generating a 12-channel file.
Using the ExtAudioFile APIs, I’m…

Tim
- 4,560
- 2
- 40
- 64