Displaying 14 results from an estimated 14 matches for "decoder_".
Did you mean:
decoder
2006 Mar 19
0
Patch -- Decode Position for libFLAC++ file and seekable_stream decoder
...=========
RCS file: /cvsroot/flac/flac/src/libFLAC++/file_decoder.cpp,v
retrieving revision 1.9
diff -u -r1.9 file_decoder.cpp
--- src/libFLAC++/file_decoder.cpp 25 Jan 2005 04:18:35 -0000 1.9
+++ src/libFLAC++/file_decoder.cpp 20 Mar 2006 05:53:19 -0000
@@ -159,6 +159,12 @@
return ::FLAC__file_decoder_get_blocksize(decoder_);
}
+ bool File::get_decode_position(FLAC__uint64 *position) const
+ {
+ FLAC__ASSERT(is_valid());
+ return
(bool)::FLAC__file_decoder_get_decode_position(decoder_, position);
+ }
+
File::State File::init()
{
FLAC__ASSERT(0 != decoder_);
Index: src/libFLA...
2004 Sep 10
0
http streaming in the xmms plugin
...__bool (*set_write_callback) (void *decoder, WriteCallback value);
+ FLAC__bool (*set_metadata_callback) (void *decoder, MetadataCallback value);
+ FLAC__bool (*set_error_callback) (void *decoder, ErrorCallback value);
+ FLAC__bool (*set_client_data) (void *decoder, void *value);
+ FLAC__bool (*decoder_init) (void *decoder);
+ void (*safe_decoder_finish) (void *decoder);
+ void (*safe_decoder_delete) (void *decoder);
+ FLAC__bool (*process_until_end_of_metadata) (void *decoder);
+ FLAC__bool (*process_single) (void *decoder);
+ FLAC__bool (*is_eof) (void *decoder);
+ } decoder_funcs_t;
+
+ #...
2004 Sep 10
0
getting framesize in client
On Sat, Nov 09, 2002 at 06:02:33PM +0100, Miroslav Lichvar wrote:
> On Fri, Nov 08, 2002 at 07:12:35PM -0800, Josh Coalson wrote:
> > Yeah, it's useful, so now there is a
> > FLAC__seekable_stream_decoder_get_decode_position() and
> > FLAC__file_decoder_get_decode_position(). I haven't documented
> > them yet but you can see an example in
> > src/metaflac/operations_shorthand_seektable.c where I use it
> > during seektable creation.
>
> Ok, here is patch for "...
2004 Sep 10
2
getting framesize in client
On Fri, Nov 08, 2002 at 07:12:35PM -0800, Josh Coalson wrote:
> Yeah, it's useful, so now there is a
> FLAC__seekable_stream_decoder_get_decode_position() and
> FLAC__file_decoder_get_decode_position(). I haven't documented
> them yet but you can see an example in
> src/metaflac/operations_shorthand_seektable.c where I use it
> during seektable creation.
Ok, here is patch for "current bitrate" displayi...
2005 Oct 16
1
Trivial Implementation for future libFLAC++ releases
Josh,
I added the following trivial implementation of the C++ file decoder
FLAC::Decoder::File::get_decode_position() to my file_decoder.cpp file...
bool File::get_decode_position(FLAC__uint64 *position) const
{
FLAC__ASSERT(is_valid());
return
(bool)::FLAC__file_decoder_get_decode_position(decoder_, position);
}
I would humbly suggest it be included in future libFLAC++ releases.
Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/flac/attachments/20051016/06334aec/attachment.htm
2004 Sep 10
2
Using libFLAC++
...r:File, and am now implementing a "::Play" function, that will
eventually take a file name as a parameter and play it. I've
stub-implemented all the required functions (meta,error, and write_callback).
However, when I do the following, it prints 7, which appears to be
FLAC__FILE_DECODER_INVALID_CALLBACK, meaning I haven't set up one of the
callbacks that I need to.
bool FlacDecoder::play(const char *filename)
{
FLAC__FileDecoderState fstate;
set_filename(filename);
fstate = FLAC__file_decoder_init(decoder_);
cout << fstate << endl;
return t...
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
getting framesize in client
...<lichvarm@phoenix.inf.upol.cz> wrote:
> > On Sat, Nov 09, 2002 at 06:02:33PM +0100, Miroslav Lichvar wrote:
> > > On Fri, Nov 08, 2002 at 07:12:35PM -0800, Josh Coalson wrote:
> > > > Yeah, it's useful, so now there is a
> > > > FLAC__seekable_stream_decoder_get_decode_position() and
> > > > FLAC__file_decoder_get_decode_position(). I haven't documented
> > > > them yet but you can see an example in
> > > > src/metaflac/operations_shorthand_seektable.c where I use it
> > > > during seektable creation....
2004 Sep 10
0
Using libFLAC++
...mplementing a "::Play" function, that will
> eventually take a file name as a parameter and play it. I've
> stub-implemented all the required functions (meta,error, and write_callback).
> However, when I do the following, it prints 7, which appears to be
> FLAC__FILE_DECODER_INVALID_CALLBACK, meaning I haven't set up one of the
> callbacks that I need to.
>
> bool FlacDecoder::play(const char *filename)
> {
> FLAC__FileDecoderState fstate;
> set_filename(filename);
>
> fstate = FLAC__file_decoder_init(decoder_);
This is wrong...
2005 Sep 16
0
Trivial Implementation for future libFLAC++ releases
Josh,
I added the following trivial implementation of the C++ file decoder
FLAC::Decoder::File::get_decode_position() to my file_decoder.cpp file...
bool File::get_decode_position(FLAC__uint64 *position) const
{
FLAC__ASSERT(is_valid());
return
(bool)::FLAC__file_decoder_get_decode_position(decoder_, position);
}
I would humbly suggest it be included in future libFLAC++ releases.
Thanks!
2004 Sep 10
2
getting framesize in client
...-- Miroslav Lichvar <lichvarm@phoenix.inf.upol.cz> wrote:
> On Sat, Nov 09, 2002 at 06:02:33PM +0100, Miroslav Lichvar wrote:
> > On Fri, Nov 08, 2002 at 07:12:35PM -0800, Josh Coalson wrote:
> > > Yeah, it's useful, so now there is a
> > > FLAC__seekable_stream_decoder_get_decode_position() and
> > > FLAC__file_decoder_get_decode_position(). I haven't documented
> > > them yet but you can see an example in
> > > src/metaflac/operations_shorthand_seektable.c where I use it
> > > during seektable creation.
> >
> >...
2004 Sep 10
4
xmms-plugin problems
Hi,
i'm using xmms-plugin from flac-0.9, i found following problems.
Back-seeking cause, that .flac is not played all. It's caused by
StreamDecoderPrivate variable samples_decoded and function
stream_decoder_frame_sync_, which compare it against whole length of stream.
I don't know what is meaning of this varible (samples decoded from last reset
or for whole life of decoder). So i samples_decoded set to 0 in
stream_decoder_reset. Against stream_decoder.c
205a206,207
> if (decoder->guts)
>...
2005 May 25
0
[PATCH] Fix fuction prototypes/definitions with void argument
...outines
*/
-void show_version()
+void show_version(void)
{
printf("metaflac %s\n", FLAC__VERSION_STRING);
}
--- src/plugin_xmms/plugin.c-dist 2005-05-25 16:25:03.000000000 +0200
+++ src/plugin_xmms/plugin.c 2005-05-25 16:25:34.000000000 +0200
@@ -109,14 +109,14 @@ typedef enum {
DECODER_HTTP
} decoder_t;
-static void FLAC_XMMS__init();
+static void FLAC_XMMS__init(void);
static int FLAC_XMMS__is_our_file(char *filename);
static void FLAC_XMMS__play_file(char *filename);
-static void FLAC_XMMS__stop();
+static void FLAC_XMMS__stop(void);
static void FLAC_XMMS__pause(short p);...
2017 Jan 19
4
[PATCH] Fix cppcheck warnings
..., "ERROR: plugin can only handle 8/16-bit samples", 0); */
- fprintf(stderr, "libxmms-flac: can't handle %d bit output\n", stream_data_.bits_per_sample);
+ fprintf(stderr, "libxmms-flac: can't handle %u bit output\n", stream_data_.bits_per_sample);
safe_decoder_finish_(decoder_);
return;
}
diff --git a/src/share/utf8/charset.c b/src/share/utf8/charset.c
index 432e32d..0c2d1ee 100644
--- a/src/share/utf8/charset.c
+++ b/src/share/utf8/charset.c
@@ -522,6 +522,7 @@ int charset_convert(const char *fromcode, const char *tocode,
if (to) {
newbuf...