Truncating an audio file
Truncating an audio file
- Subject: Truncating an audio file
- From: patrick machielse <email@hidden>
- Date: Wed, 31 Jul 2013 21:34:10 +0200
I'm sure this must have come up before, but I couldn't find a good answer to this on Google.
In an application, I'm recording audio to file using the ExtAudioFile API. After recording is finished, there may be the need to chop off up to 60 seconds of audio from the end of the file (which will be silence).
ExtAudioFile doesn't seem to have functions that would support this type of operation.
The low-tech solution would be to read > write to a new file. But this can take a while for a large file written to a lossy file format (max. duration of the recorded file could be about 2 hours).
- Is there other Apple API to perform this type of operation?
- Is there another elegant and efficient way to delete audio from the end of a stream?
- Are some audio file formats better suited for this than others?
- Would it be feasible to 'clip' an audio file using low level C API file manipulation? [you never know...]
Thanks,
p.
--
Patrick Machielse
Hieper Software
http://www.hieper.nl
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden