Highlighted

Trouble with PF_OutFlag_I_USE_AUDIO and PF_CHECKOUT_LAYER_AUDIO

New Here ,
Apr 15, 2010

Copy link to clipboard

Copied

I am trying to render a graphical representation of the layer's audio waveform. I have seen this similar thread, with the problem checking out the audio, but i cannot get even that far.

In my GlobalSetup function i set out_flags thus..

out_data->out_flags = PF_OutFlag_I_USE_AUDIO;

but in my PF_Cmd_FRAME_SETUP function, and PF_Cmd_RENDER function ( also PF_Cmd_SMART_PRE_RENDER PF_Cmd_SMART_RENDER)

the PF_InData src_snd structure is always empty and in_data->start_sampL == 0, in_data->dur_sampL == 0, in_data->total_sampL == 0

I am clearly missing something, I really appreciate any guidance,

Thanks

Steve (London, UK - any Adobe plugin developers nearby?)

TOPICS
SDK

Views

431

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Trouble with PF_OutFlag_I_USE_AUDIO and PF_CHECKOUT_LAYER_AUDIO

New Here ,
Apr 15, 2010

Copy link to clipboard

Copied

I am trying to render a graphical representation of the layer's audio waveform. I have seen this similar thread, with the problem checking out the audio, but i cannot get even that far.

In my GlobalSetup function i set out_flags thus..

out_data->out_flags = PF_OutFlag_I_USE_AUDIO;

but in my PF_Cmd_FRAME_SETUP function, and PF_Cmd_RENDER function ( also PF_Cmd_SMART_PRE_RENDER PF_Cmd_SMART_RENDER)

the PF_InData src_snd structure is always empty and in_data->start_sampL == 0, in_data->dur_sampL == 0, in_data->total_sampL == 0

I am clearly missing something, I really appreciate any guidance,

Thanks

Steve (London, UK - any Adobe plugin developers nearby?)

TOPICS
SDK

Views

432

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Apr 15, 2010 0
Participant ,
Nov 06, 2018

Copy link to clipboard

Copied

I'm having the exact same issue with the in_data->src_snd being null and all the sampL being 0. Does anyone have any hints regarding accessing audio on a plugin that's not audio only?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Nov 06, 2018 0
zcream LATEST
Explorer ,
Oct 07, 2020

Copy link to clipboard

Copied

Wow. I'm late to the party. I've got the same problem. I call PF_CHECKOUT_LAYER_AUDIO from within Render - PF_Cmd_RENDER.

 

Both the commands return no error.

 

ERR(PF_CHECKOUT_LAYER_AUDIO(in_data,
		AEC_INPUT,					// Param index
		in_data->start_sampL,			// start time
		in_data->dur_sampL,			// duration
		in_data->time_scale,
		0xac440000, // #define 	SND_RATE_44100			0xac440000
		PF_SSS_4,
		PF_Channels_MONO,
		PF_SIGNED_FLOAT,			// fmt
		&audio));

	ERR(PF_GET_AUDIO_DATA(in_data, audio, &data0, &num_samples_bufferL,
		NULL, NULL, NULL, NULL));

 

However, num_samples_bufferL always comes out as 0.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 07, 2020 0