• 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
Saving a sound file with a specific duration
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Saving a sound file with a specific duration


  • Subject: Saving a sound file with a specific duration
  • From: Adriano Gonçalves <email@hidden>
  • Date: Mon, 25 Mar 2013 14:49:10 +0000

Hi.

I've been searching for this for a while now and maybe I'm not using the correct search terms but I can't seem to find the solution.

Using AVAudioRecorder I can start recording a sound file using the method

[audiorecorder recordForDuration:10.0]
;

This way, if the user doesn't push the "stop recording" button, after those 10 seconds the recording is stopped. That's what I need.

But if the user pushes the "stop" button BEFORE those 10 seconds are gone, my sound file will be smaller.

So the question is, in those cases, how can I append "empty" seconds to the recorded file, so that in the end it will have 10 seconds in duration? Can it be done using AVAudioRecorder?


Best regards,
Adriano Gonçalves

 _______________________________________________
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: Saving a sound file with a specific duration
      • From: Richard Dobson <email@hidden>
  • Prev by Date: SimpleAudioDriver and sample rate.
  • Next by Date: Re: Saving a sound file with a specific duration
  • Previous by thread: iPhone AudioUnit sporadic play out failure
  • Next by thread: Re: Saving a sound file with a specific duration
  • Index(es):
    • Date
    • Thread