Displaying 15 results from an estimated 15 matches for "flac__stream_decoder_new".
2004 Sep 10
2
Error initializing flac stream decoder.
I've cross-compiled flac for the armv4l processor (rio receiver), and
i'm trying to start up a decode thread :
#include <FLAC/stream_decoder.h>
....
FLAC__StreamDecoder *flac = NULL;
flac = FLAC__stream_decoder_new();
if (flac == NULL) {
printf("[DECODE] Unable to initalize flac object\n");
pthread_exit(NULL);
}
And, oddly enough, it's consistantly failling at the
FLAC__stream_decoder_new(). Is there any way to determine exactly why
it isn&...
2004 Sep 10
0
Error initializing flac stream decoder.
...ima <reza@reza.net> wrote:
> I've cross-compiled flac for the armv4l processor (rio receiver), and
>
> i'm trying to start up a decode thread :
>
> #include <FLAC/stream_decoder.h>
> ....
> FLAC__StreamDecoder *flac = NULL;
> flac = FLAC__stream_decoder_new();
> if (flac == NULL) {
> printf("[DECODE] Unable to initalize flac
> object\n");
> pthread_exit(NULL);
> }
>
> And, oddly enough, it's consistantly failling at the
> FLAC__stream_decoder_new(). Is there a...
2004 Sep 10
3
[Flac-users] libflac memory requirements?
Hello,
Can someone give me an idea of the memory requirements for using libFLAC?
I'm trying to incorporate FLAC support into a player application for the
Rio Receiver (see http://rioreceiver.comms.net for details), but I'm
having trouble because FLAC__stream_decoder_new() is attempting to
allocate 2099828 bytes for an instance of the FLAC__StreamDecoderPrivate
struct. Is this accurate, or is there something wrong with my setup?
I'm hoping I just have something configured wrong, because this device
only has 4 megs of memory and no swap, so allocating 2+ megs...
2004 Sep 10
2
Error initializing flac stream decoder.
...e:
>
>>I've cross-compiled flac for the armv4l processor (rio receiver), and
>>
>>i'm trying to start up a decode thread :
>>
>> #include <FLAC/stream_decoder.h>
>> ....
>> FLAC__StreamDecoder *flac = NULL;
>> flac = FLAC__stream_decoder_new();
>> if (flac == NULL) {
>> printf("[DECODE] Unable to initalize flac
>>object\n");
>> pthread_exit(NULL);
>> }
>>
>>And, oddly enough, it's consistantly failling at the
>>FLAC__stream_de...
2011 Aug 11
1
Memory leak
...6,772 bytes in 5 blocks
==30495== total heap usage: 52 allocs, 47 frees, 275,712 bytes allocated
==30495==
==30495== 6,772 (8 direct, 6,764 indirect) bytes in 1 blocks are definitely lost in loss record 5 of 5
==30495== at 0x400522F: calloc (vg_replace_malloc.c:418)
==30495== by 0x4068847: FLAC__stream_decoder_new (stream_decoder.c:284)
==30495== by 0x4074911: init_stream_internal_ (stream_encoder.c:1007)
==30495== by 0x4075A98: init_FILE_internal_ (stream_encoder.c:1221)
==30495== by 0x401EE65: FLAC::Encoder::File::init(char const*) (stream_encoder.cpp:459)
==30495== by 0x401E9FC: FLAC::Encoder:...
2004 Sep 10
2
Storing FLAC in Matroska
...)client_data;
};
void flac_DecoderErrorCallback(const FLAC__StreamDecoder *decoder,
FLAC__StreamDecoderErrorStatus status, void *client_data)
{
flacData *ourData = (flacData *)client_data;
};
int main(int argc, char* argv[])
{
//Create the FLAC stream decoder
FLAC__StreamDecoder *flac_file = FLAC__stream_decoder_new();
//Setup the callbacks
FLAC__stream_decoder_set_read_callback(flac_file,
(FLAC__StreamDecoderReadCallback)flac_DecoderReadCallback);
FLAC__stream_decoder_set_write_callback(flac_file,
(FLAC__StreamDecoderWriteCallback)flac_DecoderWriteCallback);
FLAC__stream_decoder_set_metadata_callback(fla...
2005 May 25
0
[PATCH] Fix fuction prototypes/definitions with void argument
...5 16:07:23.000000000 +0200
+++ src/libFLAC/stream_decoder.c 2005-05-25 16:07:27.000000000 +0200
@@ -180,7 +180,7 @@ FLAC_API const char * const FLAC__Stream
* Class constructor/destructor
*
***********************************************************************/
-FLAC_API FLAC__StreamDecoder *FLAC__stream_decoder_new()
+FLAC_API FLAC__StreamDecoder *FLAC__stream_decoder_new(void)
{
FLAC__StreamDecoder *decoder;
unsigned i;
--- src/libFLAC/seekable_stream_encoder.c-dist 2005-05-25 16:07:23.000000000 +0200
+++ src/libFLAC/seekable_stream_encoder.c 2005-05-25 16:07:27.000000000 +0200
@@ -110,7 +110,7 @@ FLAC_...
2004 Sep 10
0
[Flac-users] libflac memory requirements?
...; wrote:
> Hello,
> Can someone give me an idea of the memory requirements for using
> libFLAC?
> I'm trying to incorporate FLAC support into a player application for
> the
> Rio Receiver (see http://rioreceiver.comms.net for details), but I'm
> having trouble because FLAC__stream_decoder_new() is attempting to
> allocate 2099828 bytes for an instance of the
> FLAC__StreamDecoderPrivate
> struct. Is this accurate, or is there something wrong with my setup?
I forgot to mention, as a temporary workaround until the next
release, in your development environment you can safely red...
2009 Sep 22
0
Making the FLAC decoder work without callbacks
...our program. The decoder needs to simply read flac encoded data from a
file, decode it, and play write the decoded PCM to the sound driver for
playing it.
I am looking to make a very simple application which uses the libFLAC.lib
static library and calls the following functions to do this task:
- FLAC__stream_decoder_new
- FLAC__stream_decoder_set_md5_checking
- FLAC__stream_decoder_init_FILE
- FLAC__stream_decoder_process_single (inside a while<no. of frames> loop)
- FLAC__stream_decoder_delete
All of this happens without resorting to callbacks. Even though it seems
from the documentation that this is a po...
2002 Sep 11
1
patch for FLAC
...for Makefile.am
+dnl sets HAVE_FLAC to yes or no for Makefile.am
+
+AC_ARG_ENABLE(flac, [ --enable-flac Build in FLAC support],
+ use_flac="$enableval", use_flac="no")
+have_flac="no"
+if test "x$use_flac" = xyes; then
+
+ AC_CHECK_LIB(FLAC, FLAC__stream_decoder_new, have_flac=yes, have_flac=no, -lm)
+ AC_CHECK_HEADER(FLAC/all.h, have_flac=yes, have_flac=no)
+
+ if test "x$have_flac" = xyes; then
+ AC_MSG_RESULT([checked for FLAC, found.])
+ FLAC_LIBS="-lflac"
+ AC_DEFINE(HAVE_FLAC, 1, [whether FLAC should be used or not])
+ e...
2005 Jan 16
2
two problems with flac and ices 0.4 build
i'm trying to build ices0.4 and vorbis-tools 1.0.1 with flac 1.1.1.
Neither seems happy, hence the crossposting (sorry).
ICES0.4
---
ices refuses to see the libFLAC library, even if i specify
--with-flac=/usr/local/lib (or even just --with-flac=/usr/local/, as the
configure script seems to look in the lib and include subdirectories of
the specified path?). i get a configure error:
2005 Jan 16
2
two problems with flac and ices 0.4 build
i'm trying to build ices0.4 and vorbis-tools 1.0.1 with flac 1.1.1.
Neither seems happy, hence the crossposting (sorry).
ICES0.4
---
ices refuses to see the libFLAC library, even if i specify
--with-flac=/usr/local/lib (or even just --with-flac=/usr/local/, as the
configure script seems to look in the lib and include subdirectories of
the specified path?). i get a configure error:
2004 Sep 10
2
Storing FLAC in Matroska
Hello,
I'm looking into storing FLAC audio in Matroska and I have a few
questions.
1. Can I use libflac to extract the compressed frames?
Or will I need to write up a simple file parser?
2. What is required to decode the frames?
From the docs I understand that you need the FRAME and you may need the
METADATA_BLOCK.
Thanks,
Jory Stone
jcsston@toughguy.net
Matroska, the new,
2012 May 05
5
[PATCH] Optionally, allow distros to use openssl for MD5 verification
.../* (the rest of these are only used for seeking) */
FLAC__Frame last_frame; /* holds the info of the last frame we seeked to */
FLAC__uint64 first_frame_offset; /* hint to the seek routine of where in the stream the first audio frame starts */
@@ -322,7 +322,9 @@ FLAC_API FLAC__StreamDecoder *FLAC__stream_decoder_new(void)
decoder->private_->file = 0;
set_defaults_(decoder);
-
+#if defined(HAVE_OPENSSL)
+ EVP_MD_CTX_init(&decoder->private_->md5context);
+#endif
decoder->protected_->state = FLAC__STREAM_DECODER_UNINITIALIZED;
return decoder;
@@ -346,7 +348,9 @@ FLAC_API void...
2004 Sep 10
0
http streaming in the xmms plugin
...coder *) decoder);
! }
! }
!
! static FLAC__bool http_decoder_is_eof(void *decoder)
! {
! return FLAC__stream_decoder_get_state((FLAC__StreamDecoder *) decoder) == FLAC__STREAM_DECODER_END_OF_STREAM;
! }
!
! static const decoder_funcs_t HTTP_DECODER_FUNCTIONS = {
! false,
! (void* (*) (void)) FLAC__stream_decoder_new,
! http_decoder_set_md5_checking,
! (FLAC__bool (*) (void *, const char*)) http_decoder_set_url,
! (FLAC__bool (*) (void *)) FLAC__stream_decoder_set_metadata_ignore_all,
! (FLAC__bool (*) (void *, FLAC__MetadataType)) FLAC__stream_decoder_set_metadata_respond,
! (FLAC__bool (*) (void *, Write...