• 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
Re: Pitch Shifting and File Saving Problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Pitch Shifting and File Saving Problem


  • Subject: Re: Pitch Shifting and File Saving Problem
  • From: Aran Mulholland <email@hidden>
  • Date: Wed, 23 Oct 2013 12:05:25 +1100

You seem to be thinking that you can cast a URL to an ExtaudioFileRef when calling ExtAudioFileWriteAsync. You cant. Read the documentation here

https://developer.apple.com/library/ios/documentation/MusicAudio/Reference/ExtendedAudioFileServicesReference/Reference/reference.html

You need to create the file (outside your render callback)
Prime it (http://lists.apple.com/archives/coreaudio-api/2010/Aug/msg00000.html) if you want to write in an async manner.
Then write to it.

Close it when you have totally finished with it. (not every render callback)

I could go on, but a thorough read of the documentation is what you need to do.


On Wed, Oct 23, 2013 at 5:01 AM, Mathew iprocessor <email@hidden> wrote:
I am trying to do TimeStretching and Pitch shifting of Audio files with Audiounits dynamically. ( Trying to do Ramped Slow mo like english letter "U" behaviour) 

I hope, "AudioUnits" is the only option apart from other third party frameworks like Dirac,etc.  Is there any other possibility with IOS-SDK API's(apart from Audiounits)?

Kindly check this link for my project workspace. 

https://drive.google.com/folderview?id=0BxlMIbXuP5iFU2tWeFYza1U5aG8&usp=sharing

For a quick view, http://pastebin.com/7WF9DyXX has the main code.

I am able to vary the time shifting. 

My problem:

I don't know how to save the audio file after pitch shifting. Also, in my real time, the pitch shifting will be dynamic. 

In my render callback, the method "ExtAudioFileWriteAsync" returns -50.

Please help me guys.








 _______________________________________________
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

 _______________________________________________
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

References: 
 >Pitch Shifting and File Saving Problem (From: Mathew iprocessor <email@hidden>)

  • Prev by Date: Pitch Shifting and File Saving Problem
  • Next by Date: Re: ios7 inter app audio
  • Previous by thread: Pitch Shifting and File Saving Problem
  • Next by thread: Re: ios7 inter app audio
  • Index(es):
    • Date
    • Thread