search for: samples_per_write

Displaying 5 results from an estimated 5 matches for "samples_per_write".

2004 Sep 10
2
getting framesize in client
...:40:44.000000000 +0100 +++ src/plugin_xmms/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 +/* 5...
2004 Sep 10
0
getting framesize in client
...:40:44.000000000 +0100 +++ src/plugin_xmms/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 +/* 5...
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
2004 Sep 10
0
[Flac-users] Extending mp3/ogg application to play flac
...ite 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