Accessing Audio Data¶
PF_CHECKOUT_LAYER_AUDIO from Interaction Callbacks to retrieve an audio layer.
This layer is opaque; use
PF_GET_AUDIO_DATA to access specific details about that audio.
As with pixel data, it’s important that you check in the audio as soon as possible.
If your effect requires as input a time span different from the output time span, update the
endsampL field in
PF_Cmd_AUDIO_SETUP from Frame Selectors.
Extending Audio Clips¶
You cannot extend the length of an audio clip through the API.
However, it is a relatively simple matter for the user to extend the length of the clip before applying your effect. Apply time remapping to the layer and simply extend the out point.
If you’re adding a delay effect to a sounds clip, you’d want to allow it time to fade away instead of truncating the sound at the original end point.
Document the steps users should take when applying your effect.