Displaying 5 results from an estimated 5 matches for "flacdecoder".
Did you mean:
cflacdecoder
2004 Sep 10
2
flac_read callback not called in Windows?
...believe the code is OK because of this.
I am now trying to get it to work under Windows 2000 with Msys and gcc 3.2.
Everything compiles and links OK, but when it runs neither my flac_read, or
flac_write callback get called even though I call :
res = FLAC__seekable_stream_decoder_process_single(flacDecoder);
Has anyone else experienced this? What follows is the code I am using, my
program just sits looping in the while block in the flac_update function:
// callback for the stream
// we need to get length words from the flac decode into the buffer
static void flac_update(int param, INT16 *buffer,...
2004 Sep 10
1
linking with libFLAC on Mac OS X
...s out of date, so run ranlib.
So then I run ranlib, and it seems to be okay, except I then get
undefined symbol errors:
% cc -bundle -I/System/Library/Frameworks/JavaVM.framework/Headers
-I./flac-1.0.2-osx-ppc/include/ -L./flac-1.0.2-osx-ppc/lib/ -lFLAC -o
libflacjmf.jnilib -framework JavaVM flacdecoder.c
/usr/bin/ld: Undefined symbols:
_FLAC__stream_decoder_process_metadata
I've tried it even without the Java-specific options, and it still fails.
Has anyone had any luck linking with libFLAC on OS X? Any help would be
appreciated.
Thanks,
Chris
--
Chris Campbell
http://www.cc.gatech.edu...
2004 Sep 10
2
Using libFLAC++
...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 true;
}
Now, I thought the main difference between libFLAC and libFLAC++ was that in
c++ you didn't...
2004 Sep 10
0
Using libFLAC++
...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. It should be:
fstate = init();
> cout << fstate << endl;
>
> return true;
> }...
2004 Sep 10
0
flac_read callback not called in Windows?
...te:
...
> I am now trying to get it to work under Windows 2000 with Msys and
> gcc 3.2.
> Everything compiles and links OK, but when it runs neither my
> flac_read, or
> flac_write callback get called even though I call :
>
> res = FLAC__seekable_stream_decoder_process_single(flacDecoder);
what is the value returned in 'res'? also, what does
FLAC__seekable_stream_decoder_get_resolved_state_string() return
after calling FLAC__seekable_stream_decoder_process_single() ?
Josh
__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
h...