• 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: AudioQueueProcessingTap broken in 6.1? (was: Re: NewTimePitch Audio Unit Distorts Signal)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AudioQueueProcessingTap broken in 6.1? (was: Re: NewTimePitch Audio Unit Distorts Signal)


  • Subject: Re: AudioQueueProcessingTap broken in 6.1? (was: Re: NewTimePitch Audio Unit Distorts Signal)
  • From: Tony Kirke <email@hidden>
  • Date: Thu, 31 Jan 2013 09:18:39 -0800

Yes, sorry. I should have clarified which demo project. It was the AQPT one. And audio may have been fine on iphone when I first tried it, but I was also hearing distortion more recently. It was always OK on 6.0 simulator. 
Tony

On Thu, Jan 31, 2013 at 8:36 AM, Chris Adamson <email@hidden> wrote:
Yeah, I'm looking into the silence issue now. I'm worried that 6.1 may break the Audio Queue Processing Tap (or at least how I'm using it). That demo still works on the 6.0 simulator, but produces silence on 6.1 (simulator and device).

The AUNewTimePitch demos from that CocoaConf Portland blog still work on 6.1.

--Chris


On Jan 31, 2013, at 11:26 AM, Tony Kirke <email@hidden> wrote:

I've also had the same issue based on Chris's demo project. In fact I just upgraded to 6.1 and am now getting silence instead of distortion. Were you on 6.0 or 6.1?

On Thu, Jan 31, 2013 at 3:27 AM, Jont Olof Lyttkens <email@hidden> wrote:
Hi!

I am building an app for iOS. which depends to a great extent on time-stretching and I was thrilled to find the NewTimePitch Audio Unit. I am configuring a simple AUGraph:

kAudioUnitSubType_AudioFilePlayer -> kAudioUnitSubType_NewTimePitch -> kAudioUnitSubType_RemoteIO

The parameter "rate" of the NewTimePitch is set from around 0.7 to 1.3. Problem is that the NewTimePitch Unit distorts the audio quite badly. I found this post on coreaudio-api-maillist which relates to the problem:

http://lists.apple.com/archives/coreaudio-api/2012/Sep/msg00020.html

Unfortunately I don't come to the same conclusion. I don't hear any phase problems, nor any monofication of the signal. We are only talking really bad distortion. I've done testing with all sorts of audio input down to a -24dB FS audio input and the distortion seems to be unrelated to volume.

Finally I found this blog post from CocoaConf by Chris Adamson, where he bundles the demo project from the conference:

http://www.subfurther.com/blog/2012/10/30/cocoaconf-portland-12-and-the-audioqueueprocessingtap/

I must admit that he pointed out a couple of things that I had missed out, but even after fixing these, I still had the distortion. More so, compiling the Demo Project from CocoaConf also distorted the audio, so I am beginning to wonder if the NewTimePitch AU really is corrupt.

A printout of my CAShow():

AudioUnitGraph 0xBD33001:
  Member Nodes:
node 1: 'auou' 'rioc' 'appl', instance 0x815e940 O I
node 2: 'aufc' 'nutp' 'appl', instance 0xa85ade0 O I
node 3: 'augn' 'afpl' 'appl', instance 0x8298510 O I
  Connections:
node   3 bus   0 => node   2 bus   0  [ 2 ch,  44100 Hz, 'lpcm' (0x00000029) 32-bit little-endian float, deinterleaved]
node   2 bus   0 => node   1 bus   0  [ 2 ch,  44100 Hz, 'lpcm' (0x00000029) 32-bit little-endian float, deinterleaved]
  CurrentState:
mLastUpdateError=0, eventsToProcess=F, isRunning=F

I also have:

- Ensured that the StreamFormat of the AUNewTimePitch is set equally on all other units
- Setup the RemoteIO bus

Is there any magic trick that I need to know about or does anyone have a non-distorting sample of a graph that works with the NewTimePitch Audio Unit?

Best regards

/Jont Olof

_____________________________________
Co-founder and Senior Cocoa Developer
centCode AB

E-mail: email@hidden
Adress: Frödingsgatan 25, Uppsala, Sweden
Phone:  +46 707 381676
Zip:    SE-75421
Url:    www.centcode.com


 _______________________________________________
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)

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: 
 >NewTimePitch Audio Unit Distorts Signal (From: Jont Olof Lyttkens <email@hidden>)
 >Re: NewTimePitch Audio Unit Distorts Signal (From: Tony Kirke <email@hidden>)
 >AudioQueueProcessingTap broken in 6.1? (was: Re: NewTimePitch Audio Unit Distorts Signal) (From: Chris Adamson <email@hidden>)

  • Prev by Date: AudioQueueProcessingTap broken in 6.1? (was: Re: NewTimePitch Audio Unit Distorts Signal)
  • Next by Date: Re: AudioQueueProcessingTap broken in 6.1? (was: Re: NewTimePitch Audio Unit Distorts Signal)
  • Previous by thread: AudioQueueProcessingTap broken in 6.1? (was: Re: NewTimePitch Audio Unit Distorts Signal)
  • Next by thread: Re: AudioQueueProcessingTap broken in 6.1? (was: Re: NewTimePitch Audio Unit Distorts Signal)
  • Index(es):
    • Date
    • Thread