PF_CHECKOUT_LAYER_AUDIO of another audiosource in composition
Hi,
I'm trying to get acccess to the layers audio of another layer in composition. So I defined an GUI-Element where I can choose the layer I want to get the audio from.
PF_ADD_LAYER( STR(StrID_Popup_Layers),
PF_LayerDefault_NONE,
AUDIOLAYER_DISK_ID);
The next step is to get the audio of the choosen layer in Audio_Render(...){...}. And that's my problem. I do have access to the audiolayer the Effect is assigned to with the following lines:
ERR(PF_CHECKOUT_LAYER_AUDIO ( in_data,
AE3DSOUND_INPUT, // Param index
in_data->start_sampL, // start time
in_data->dur_sampL, // duration
in_data->time_scale,
SND_RATE_44100,
PF_SSS_4,
PF_Channels_MONO,
PF_SIGNED_FLOAT, // fmt
&audio ));
I'm also able to process image adjustments of the choosen layer with this lines:
// Checkout
PF_ParamDef checkout;
err = PF_CHECKOUT_PARAM(in_data,
AUDIOLAYER_DISK_ID,
in_data->current_time,
in_data->time_step,
in_data->time_scale,
&checkout);
Is there a way to get the audio of the choosen layer?
Best regards!
hutapp