search for: reservoir_

Displaying 6 results from an estimated 6 matches for "reservoir_".

Did you mean: reservoir
2004 Sep 10
4
xmms-plugin problems
...slow. It's caused by flac_ip.add_vis_pcm, it gets too many samples (4.5Ksamples) at one call. Solution is in calling this with only 512samples. Against plugin.c 301,305c301,312 < flac_ip.add_vis_pcm(flac_ip.output->written_time(), file_info_.sample_format, file_info_.channels, bytes, reservoir_); < while(flac_ip.output->buffer_free() < (int)bytes && file_info_.is_playing && file_info_.seek_to_in_sec == -1) < xmms_usleep(10000); < if(file_info_.is_playing && file_info_.seek_to_in_sec == -1) < flac_ip.output->write_audio(reservo...
2004 Sep 10
0
[Flac-users] Extending mp3/ogg application to play flac
...? since the write callback will be called once for each frame, and the number of samples in a FLAC frame can vary, your write callback will probably have to write to an intermediate buffer. the same thing has to happen in the winamp2 plugin, so you can look at that code for an example (search for reservoir_ and SAMPLES_PER_WRITE). http://cvs.sourceforge.net/viewcvs.py/flac/flac/src/plugin_winamp2/in_flac.c?view=markup Josh __________________________________ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! http://promotions.yahoo.com/new_mail
2004 Sep 10
2
[Flac-users] Extending mp3/ogg application to play flac
Hello, Flac is great and I have encoded all my "good" CDs into it! Now I want to extend an existing application able to decode mp3 and ogg vorbis to replay flac as well. It is a plugin to a set top box application on Linux (VDR). The existing code decodes into a mad_pcm structure using mad fixed point format (mad_fixed_t). I have read the API of libFlac++ and I understand what I have
2004 Sep 10
2
getting framesize in client
.../plugin.c 2002-11-09 17:28:45.000000000 +0100 @@ -58,6 +58,7 @@ unsigned channels; unsigned sample_rate; unsigned length_in_msec; + gchar *title; AFormat sample_format; int seek_to_in_sec; FLAC__bool has_replaygain; @@ -114,6 +115,10 @@ #define SAMPLES_PER_WRITE 512 static FLAC__int32 reservoir_[FLAC__MAX_BLOCK_SIZE * 2/*for overflow*/ * FLAC_PLUGIN__MAX_SUPPORTED_CHANNELS]; static FLAC__byte sample_buffer_[SAMPLES_PER_WRITE * FLAC_PLUGIN__MAX_SUPPORTED_CHANNELS * (24/8)]; /* (24/8) for max bytes per sample */ +#define BITRATE_HIST_SEGMENT_MSEC 500 +/* 500ms * 50 = 25s should be enough */...
2004 Sep 10
0
getting framesize in client
.../plugin.c 2002-11-10 00:40:20.000000000 +0100 @@ -58,6 +58,7 @@ unsigned channels; unsigned sample_rate; unsigned length_in_msec; + gchar *title; AFormat sample_format; int seek_to_in_sec; FLAC__bool has_replaygain; @@ -114,6 +115,10 @@ #define SAMPLES_PER_WRITE 512 static FLAC__int32 reservoir_[FLAC__MAX_BLOCK_SIZE * 2/*for overflow*/ * FLAC_PLUGIN__MAX_SUPPORTED_CHANNELS]; static FLAC__byte sample_buffer_[SAMPLES_PER_WRITE * FLAC_PLUGIN__MAX_SUPPORTED_CHANNELS * (24/8)]; /* (24/8) for max bytes per sample */ +#define BITRATE_HIST_SEGMENT_MSEC 500 +/* 500ms * 50 = 25s should be enough */...
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