search for: flac__plugin_common__apply_gain

Displaying 4 results from an estimated 4 matches for "flac__plugin_common__apply_gain".

2004 Sep 10
1
plugin optimizations
...s: plugin_common/ * FLAC__plugin_common__pack_pcm_signed_little_endian * accept FLAC__int32 *input[] * supports more channels * fixed clipping bug (BTW, random number generator in dither.c is low quality, it should be replaced, generator in replaygain is much better) * FLAC__plugin_common__apply_gain * accept FLAC__int32 *input[] * noise shaping type moved into DitherContext (user will not be confused by louder noise if shaping is switched on during playback) * supports more channels * works correctly if wide_samples % 32 != 0 plugin_xmms/ * optimizations and updat...
2004 Sep 10
2
getting framesize in client
...reservoir_, SAMPLES_PER_WRITE); const unsigned delta = n * channels; int bytes; - unsigned i; + unsigned i, written_time, bh_index_w, bh_index_o; + FLAC__uint64 decode_position; if(flac_cfg.output.replaygain.enable && file_info_.has_replaygain) { bytes = (int)FLAC__plugin_common__apply_gain( @@ -365,6 +372,27 @@ xmms_usleep(10000); if(file_info_.is_playing && file_info_.seek_to_in_sec == -1) flac_ip.output->write_audio(sample_buffer_, bytes); + + /* compute current bitrate */ + + written_time = flac_ip.output->written_time(); + bh_index_w =...
2004 Sep 10
0
getting framesize in client
..._samples_in_reservoir_, SAMPLES_PER_WRITE); const unsigned delta = n * channels; int bytes; - unsigned i; + unsigned i, written_time, bh_index_w; + FLAC__uint64 decode_position; if(flac_cfg.output.replaygain.enable && file_info_.has_replaygain) { bytes = (int)FLAC__plugin_common__apply_gain( @@ -365,6 +371,20 @@ xmms_usleep(10000); if(file_info_.is_playing && file_info_.seek_to_in_sec == -1) flac_ip.output->write_audio(sample_buffer_, bytes); + + /* compute current bitrate */ + + written_time = flac_ip.output->written_time(); + bh_index_w =...
2004 Sep 10
3
getting framesize in client
On Fri, Nov 08, 2002 at 12:39:52PM -0800, Josh Coalson wrote: > --- Miroslav Lichvar <lichvarm@phoenix.inf.upol.cz> wrote: > > I have few notes: > > > > It seems there is changed API in CVS again. So, what about adding > > function like > > unsigned FLAC__format_frame_size(const FLAC__Frame *frame) > > which returns size of the frame in bytes. This