Displaying 9 results from an estimated 9 matches for "flac__filedecoder".
2005 May 25
0
[PATCH] Fix fuction prototypes/definitions with void argument
...id)
{
FLAC__FileEncoder *encoder;
--- src/libFLAC/file_decoder.c-dist 2005-05-25 16:07:23.000000000 +0200
+++ src/libFLAC/file_decoder.c 2005-05-25 16:07:27.000000000 +0200
@@ -51,7 +51,7 @@
***********************************************************************/
static void set_defaults_(FLAC__FileDecoder *decoder);
-static FILE *get_binary_stdin_();
+static FILE *get_binary_stdin_(void);
static FLAC__SeekableStreamDecoderReadStatus read_callback_(const FLAC__SeekableStreamDecoder *decoder, FLAC__byte buffer[], unsigned *bytes, void *client_data);
static FLAC__SeekableStreamDecoderSeekStatus seek_...
2004 Sep 10
0
http streaming in the xmms plugin
...S__is_our_file(char *filename);
static void FLAC_XMMS__play_file(char *filename);
***************
*** 79,90 ****
static void FLAC_XMMS__get_song_info(char *filename, char **title, int *length);
static void *play_loop_(void *arg);
! static FLAC__bool safe_decoder_init_(const char *filename, FLAC__FileDecoder *decoder);
! static void safe_decoder_finish_(FLAC__FileDecoder *decoder);
! static void safe_decoder_delete_(FLAC__FileDecoder *decoder);
! static FLAC__StreamDecoderWriteStatus write_callback_(const FLAC__FileDecoder *decoder, const FLAC__Frame *frame, const FLAC__int32 * const buffer[], void *cl...
2004 Sep 10
1
How do I use FLAC in my C++ program ?
...gram, but when I try to compile it with g++
I get the following types of errors:
/home/dave/development/splitimg/splitimg.cpp:153: undefined reference to
`FLAC__file_decoder_new(void)'
/home/dave/development/splitimg/splitimg.cpp:154: undefined reference to
`FLAC__file_decoder_set_md5_checking(FLAC__FileDecoder const *, int)'
and so on, you get the idea... its not linking to libFLAC :(
my compile line is:
g++ -g -o splitimg splitimg.cpp -lao -ldl -lFLAC -lm
What is going wrong here, can I use libFLAC in C++ ?
I have written a (very)simple flac player in C and that compiles file
with gcc, so I know...
2004 Sep 10
0
new checkins
..."stream_decoder.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
typedef enum {
FLAC__FILE_DECODER_OK = 0,
FLAC__FILE_DECODER_SEEKING, /*@@@ NOTE: unused; remove this in the next minor-version */
@@ -133,5 +137,9 @@
FLAC__bool FLAC__file_decoder_process_remaining_frames(FLAC__FileDecoder *decoder);
FLAC__bool FLAC__file_decoder_seek_absolute(FLAC__FileDecoder *decoder, FLAC__uint64 sample);
+
+#ifdef __cplusplus
+}
+#endif
#endif
Index: format.h
===================================================================
RCS file: /cvsroot/flac/flac/include/FLAC/format.h,v
retrieving...
2004 Sep 10
1
[Flac-users] Trouble Building flac-1.1.0
...ing to build Flac 1.1.0. Version 1.0.3 built without any problems on this system, but 1.0.4 and 1.1.0 fail during the `make' step. I ran `./configure' without any extra flags, then ran `make'. The following is the errors that make outputs:
file_decoder.c:60: parse error before "FLAC__FileDecoderWriteCallback"
file_decoder.c:60: warning: no semicolon at end of struct or union
file_decoder.c:61: warning: type defaults to `int' in declaration of `metadata_callback'
file_decoder.c:61: warning: data definition has no type or storage class
file_decoder.c:62: parse error before "...
2004 Sep 10
3
new checkins
FYI, I have checked in a few interesting things. One is a
speedup to the decoder (about 15% improvement in overall
decode time). Another is a new interface to FLAC file
metadata. If you're curious look at include/FLAC/metadata.h.
It is basically a collection of object manipulation routines
and iterators that make it pretty easy to add/edit/delete
FLAC metadata in files efficiently. The
2004 Sep 10
2
getting framesize in client
...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 */
+#define BITRATE_HIST_SIZE 50
+static unsigned bitrate_history[BITRATE_HIST_SIZE];
static unsigned wide_samples_in_reservoir_ = 0;
static FLAC__FileDecoder *decoder_ = 0;
static file_info_struct file_info_;
@@ -188,7 +193,6 @@
void FLAC_XMMS__play_file(char *filename)
{
FILE *f;
- gchar *ret;
wide_samples_in_reservoir_ = 0;
audio_error_ = false;
@@ -219,10 +223,8 @@
return;
}
- ret = flac_format_song_title(filename);
- flac_ip.set_in...
2004 Sep 10
0
getting framesize in client
...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 */
+#define BITRATE_HIST_SIZE 50
+static unsigned bitrate_history[BITRATE_HIST_SIZE];
static unsigned wide_samples_in_reservoir_ = 0;
static FLAC__FileDecoder *decoder_ = 0;
static file_info_struct file_info_;
@@ -188,7 +193,6 @@
void FLAC_XMMS__play_file(char *filename)
{
FILE *f;
- gchar *ret;
wide_samples_in_reservoir_ = 0;
audio_error_ = false;
@@ -219,10 +223,8 @@
return;
}
- ret = flac_format_song_title(filename);
- flac_ip.set_in...
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