// Get the producer's audio
mlt_frame_get_audio( frame, buffer, format, frequency, channels, samples );
- //fprintf( stderr, "filter_volume: frequency %d\n", *frequency );
- return 0;
+// fprintf( stderr, "filter_volume: frequency %d\n", *frequency );
// Determine numeric limits
int bytes_per_samp = (samp_width - 1) / 8 + 1;
*smooth_index = ( *smooth_index + 1 ) % window;
// Smooth the data and compute the gain
- //fprintf( stderr, "smoothed %f over %d frames\n", get_smoothed_data( smooth_buffer, window ), window );
+// fprintf( stderr, "smoothed %f over %d frames\n", get_smoothed_data( smooth_buffer, window ), window );
gain *= amplitude / get_smoothed_data( smooth_buffer, window );
}
}