• 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: Puzzled over Offline units
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Puzzled over Offline units


  • Subject: Re: Puzzled over Offline units
  • From: William Stewart <email@hidden>
  • Date: Fri, 8 Jul 2005 12:34:28 -0700


On 08/07/2005, at 12:16 PM, Craig Hopson wrote:

I need to be able to play a sound forward or backward. I have a class with two buffers, one for normal (forward) play, one for reversed play. I can load the normal buffer from a file and play it. I want to fill the other buffer with the reversed sound. It looks like the ReverseOfflineUnit (from the SampleAUs) will do the dirty work of reversing a buffer. Here's the question... How do I use it? Do I create a separate 'Offline' AUGraph temporarily? Or, do I load and use the OfflineUnit directly? The main question is, how do I set the input to be my normal buffer and my output to be my reversed buffer?


You'd use it on its own I think, as it puts extra responsibilities on both the caller and on the input supplier. Its really aimed though at processing a file, and not so much for usage in a real-time playback situation - so the offline units will generally assume that they a known input to process.


The auprocess code in the SDK's AudioFileTools project shows how to use an AU in isolation; to process an input file to generate an output file. There's also documentation on this in the /Developer/ Examples/CoreAudio/Documentation/AudioUnits directory.

I'm not really convinced that this would be the best way to approach your particular problem though - (unless you are wanting to generate a reversed version of the file, and then just play that back normally).

Bill

Sorry to seem dense, I simply haven't been able to puzzle this out yet. Also, I cannot find any sample code that USES an Offline AU, nor is there much documentation for this. Thanks very much for any help.

-Craig
***************************************************
Craig Hopson, Managing Partner
Red Rock Software, Inc.
10 West Broadway, Suite 850
Salt Lake City, UT  84101
office: 801.322.4322  x103
cell: 801.949.3526
http://www.redrocksw.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


--
mailto:email@hidden
tel: +1 408 974 4056
________________________________________________________________________ __
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
________________________________________________________________________ __


_______________________________________________
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: 
 >Puzzled over Offline units (From: Craig Hopson <email@hidden>)

  • Prev by Date: Re: Carbon window compositing
  • Next by Date: Re: cross development
  • Previous by thread: Puzzled over Offline units
  • Next by thread: Re: cross development
  • Index(es):
    • Date
    • Thread