add number of output channels to frei0r and freeframe

This commit is contained in:
niels
2011-08-03 22:39:22 +02:00
parent 7fb7eb4bc9
commit c4513796ca
2 changed files with 5 additions and 0 deletions

View File

@@ -135,6 +135,8 @@ void* deal_with_ff( void *handle, char *name, int w, int h )
n_inputs = 2;
}
int n_outputs = 0;
vevo_property_set( port, "handle", VEVO_ATOM_TYPE_VOIDPTR,1, &handle );
vevo_property_set( port, "name", VEVO_ATOM_TYPE_STRING,1, &plugin_name );
vevo_property_set( port, "base", VEVO_ATOM_TYPE_VOIDPTR, 1, &base );
@@ -142,6 +144,7 @@ void* deal_with_ff( void *handle, char *name, int w, int h )
vevo_property_set( port, "num_params", VEVO_ATOM_TYPE_INT, 1,&n_params );
vevo_property_set( port, "num_inputs", VEVO_ATOM_TYPE_INT,1, &n_inputs );
vevo_property_set( port, "max_inputs", VEVO_ATOM_TYPE_INT,1,&m_inputs );
vevo_property_set( port, "num_outputs", VEVO_ATOM_TYPE_INT,1,&n_outputs );
vevo_property_set( port, "HOST_plugin_type", VEVO_ATOM_TYPE_INT, 1, &freeframe_signature_ );
int p;

View File

@@ -264,6 +264,7 @@ void* deal_with_fr( void *handle, char *name)
}
int extra = 0;
int n_inputs = 0;
int n_outputs = 0;
if( finfo.plugin_type == F0R_PLUGIN_TYPE_MIXER2 ) {
extra = 1;
n_inputs = 2;
@@ -328,6 +329,7 @@ void* deal_with_fr( void *handle, char *name)
vevo_property_set( port, "HOST_plugin_push_f", VEVO_ATOM_TYPE_VOIDPTR,1,&frei0r_push_frame_f);
vevo_property_set( port, "HOST_plugin_process_f", VEVO_ATOM_TYPE_VOIDPTR,1,&frei0r_process_frame_f);*/
vevo_property_set( port, "num_inputs", VEVO_ATOM_TYPE_INT,1, &n_inputs );
vevo_property_set( port, "num_outputs", VEVO_ATOM_TYPE_INT,1, &n_outputs );
int pixfmt = PIX_FMT_RGB24;
free(plug_name);