Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <blockquote> <p>Are there restrictions for the allowed formats?</p> </blockquote> <p>Yes, and they're usually quite strict. </p> <blockquote> <p>What format params should I use?</p> </blockquote> <p>You'll have the most luck either using the units' default ASBD, or using one based off of the pre-built sets of flags (<code>kAudioFormatFlagsAudioUnitCanonical</code> and <code>kAudioFormatFlagsCanonical</code>). As in, instead of making up your own format like this:</p> <pre><code>audioFormat.mFormatFlags = kAudioFormatFlagIsSignedInteger | kAudioFormatFlagIsPacked; </code></pre> <p>You would do this:</p> <pre><code>audioFormat.mFormatFlags = kAudioFormatFlagsAudioUnitCanonical; </code></pre> <p>Generally speaking, if you just hook up two units to each other, they'll be able to sort it out for themselves. If you need to supply your own audio, you'll have to specify the input format (and it'll likely need to be based off of<code>kAudioFormatFlagsAudioUnitCanonical</code>, which is non-interleaved linear PCM with each sample being represented as a fixed 8.24 number in an <code>SInt32</code> container).</p> <p>If you need more flexibility, you can stick an <code>AUConverter</code> audio unit before your reverb unit, since the <code>AUConverter</code> will be able to handle many more input formats (such as proper floating point samples). Note that this comes with the caveat of increased processing since the AUConverter will have to convert the audio format in real-time.</p> <p>You can see a full ASBD example on the <a href="http://developer.apple.com/library/ios/#documentation/MusicAudio/Conceptual/CoreAudioOverview/CoreAudioEssentials/CoreAudioEssentials.html" rel="nofollow">Core Audio Essentials</a> page under the heading <em>Canonical Audio Data Formats</em>.</p> <blockquote> <p>Should set the format in any scope of RemoteIO output element?</p> </blockquote> <p>If your reverb unit is connected directly to the RemoteIO output, the units should be able to sort it out for themselves.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload