From: ddennedy Date: Mon, 9 Feb 2004 16:05:32 +0000 (+0000) Subject: remove spurious return in get_audio X-Git-Url: http://research.m1stereo.tv/gitweb?a=commitdiff_plain;h=3ec17a7ab21b1211def9303df9e8eb638bf81504;p=melted remove spurious return in get_audio git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@129 d19143bc-622f-0410-bfdd-b5b2a6649095 --- diff --git a/src/modules/core/filter_volume.c b/src/modules/core/filter_volume.c index 891d63a..1335048 100644 --- a/src/modules/core/filter_volume.c +++ b/src/modules/core/filter_volume.c @@ -185,8 +185,7 @@ static int filter_get_audio( mlt_frame frame, int16_t **buffer, mlt_audio_format // 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; @@ -209,7 +208,7 @@ static int filter_get_audio( mlt_frame frame, int16_t **buffer, mlt_audio_format *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 ); } }