• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Truncating an audio file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Truncating an audio file
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: ExtAudioFileWriteAsync - when can you reuse buffer?
  • Next by Date: Re: Truncating an audio file
  • Previous by thread: Javascript in Logic's Scripter plug-in ; how to get meta data
  • Next by thread: Re: Truncating an audio file
  • Index(es):
    • Date
    • Thread