• 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: Getting and setting the play time on a DefaultOutputUnit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting and setting the play time on a DefaultOutputUnit


  • Subject: Re: Getting and setting the play time on a DefaultOutputUnit
  • From: patrick machielse <email@hidden>
  • Date: Sun, 08 May 2011 21:35:35 +0200

Op 7 mei 2011, om 21:02 heeft email@hidden het volgende geschreven:

> 2011/5/6 patrick machielse <email@hidden>:
>>
>
>> In my program I want to down-mix n files, adjusting the playback speed for each file. To this end I've set up an AUGraph with Varispeed units for each audio file, leading into an single AUMixer to join the audio streams, and ending in a DefaultOutputUnit to play the audio through the default device. Playing and mixing works.
>>
>> However, now I want to get the current play time from the DefaultOutputUnit and set it too, so the user can jump around in the mix.
>
> I'm not sure I understand the question. If you want to play from a
> certain position in your file why don't you seek to that position and
> play from there? ExtAudioFile has a seek call. This has nothing to do
> with the AudioUnit's current play time, IMHO.

Well, that could be a solution. I have not 1 but N files which play simultaneously, ending in a single default output unit.

The processing route through the graph from each file to the output will be different and can contain different units (including units such as variospeed). Therefore the the read offset for each file will be different.

Since AudioUnits / AUGraphs use a pull methodolagy, I had hoped to be able to set a 'playback time' property on the output unit (or even on the graph itself...) that would -- on the next render -- automatically result in the correct mSampleTime values passed through the graph to the ExtAudioFile render callbacks that feed the first units in the graph.

patrick
--
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

  • Prev by Date: Question about CoreAudio and threading
  • Next by Date: Re: Question about CoreAudio and threading
  • Previous by thread: Re: Question about CoreAudio and threading
  • Next by thread: AUiPodEQ + Audio Queue: Threading implications of AudioQueueOfflineRender()
  • Index(es):
    • Date
    • Thread