float *output_buffer = mlt_properties_get_data( properties, "resample.output_buffer", NULL );
int i;
+ if ( output_rate == 0 )
+ output_rate = *frequency;
+
// Restore the original get_audio
frame->get_audio = mlt_properties_get_data( properties, "resample.get_audio", NULL );
(*buffer)[ i ] = lrint( 32768.0 * sample );
}
}
- //else
- //fprintf( stderr, "resample_get_audio: %s\n", src_strerror( i ) );
+ else
+ fprintf( stderr, "resample_get_audio: %s %d,%d,%d\n", src_strerror( i ), *frequency, *samples, output_rate );
return 0;
}
}
else
{
- //fprintf( stderr, "filter_resample_init: %s\n", src_strerror( error ) );
+ fprintf( stderr, "filter_resample_init: %s\n", src_strerror( error ) );
}
}
return this;