• 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: audiograph 5ms fade
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: audiograph 5ms fade


  • Subject: Re: audiograph 5ms fade
  • From: Aran Mulholland <email@hidden>
  • Date: Wed, 08 Jan 2014 10:30:04 +1100

Specifying your own callback will break the chain but you can manually call render on the FilePlayerAU from inside your callback. If all you are looking to do is fade out audio, wouldn't it be better to turn down the volume of the mixer?

see https://developer.apple.com/library/mac/documentation/AudioUnit/Reference/AUComponentServicesReference/Reference/reference.html#//apple_ref/c/func/AudioUnitRender

other people have wanted to do this too: http://lists.apple.com/archives/coreaudio-api/2013/May/msg00032.html


On Wed, Jan 8, 2014 at 1:20 AM, Robert Carroll <email@hidden> wrote:
Is there a way to access the default render callback the the fileplayerAU's use? I am able to get the CurrentPlayTime from the fileplayers that feed into the mixerAU, but if I specify my own callback, I think it breaks the node connection from the fileplayer to the mixer input. This is just based on reading through other web posts with similar issues.

I could set up a ring buffer somewhere in the AUGraph, and then poll its callback for the timestamps.

thanks,

Robert Carroll
RSM Records
Toronto
http://www.rsmrecords.com



On Jan 6, 2014, at 3:00 PM, email@hidden wrote:

Message: 2
Date: Sun, 05 Jan 2014 17:56:51 -0500
From: Paul Davis <email@hidden>
To: Robert Carroll <email@hidden>
Cc: CoreAudio API <email@hidden>
Subject: Re: audiograph 5ms fade
Message-ID:
<email@hidden" target="_blank">email@hidden>
Content-Type: text/plain; charset="iso-8859-1"

On Sun, Jan 5, 2014 at 5:11 PM, Robert Carroll <email@hidden> wrote:


I wrote a crude version based on an NSTimer scaling the mixer's output
volume parameter, but the timing is not reliable.


all audio time should be measured using the same sample clock that drives
the processing.  just count samples in the relevant render callbacks, and
terminate when done.


 _______________________________________________
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

  • Follow-Ups:
    • Re: audiograph 5ms fade
      • From: Robert Carroll <email@hidden>
References: 
 >audiograph 5ms fade (From: Robert Carroll <email@hidden>)

  • Prev by Date: Re: clean AudioServerDriver plugin unload
  • Next by Date: scheduling a block from a render callback
  • Previous by thread: audiograph 5ms fade
  • Next by thread: Re: audiograph 5ms fade
  • Index(es):
    • Date
    • Thread