search for: flac__seekablestreamdecod

Displaying 11 results from an estimated 11 matches for "flac__seekablestreamdecod".

2004 Sep 10
2
flac_read callback not called in Windows?
...} while(decoded_samples && length) { *buffer++ = decoded_flac_channel[decode_buffer_pos++]; length--; decoded_samples--; } } } else { /* clear the sound ? */ memset(buffer, 0, length << 1); } fprintf(stderr, "end flac_update\n"); } static FLAC__SeekableStreamDecoderReadStatus flac_read(const FLAC__SeekableStreamDecoder *decoder, FLAC__byte buffer[], unsigned *bytes, void *client_data) { fprintf(stderr, "flac_read start ..."); *bytes = mame_fread(flacFile, buffer, *bytes); fprintf(stderr, "flac_read end %d\n ", *bytes); return FLAC__S...
2005 May 25
0
[PATCH] Fix fuction prototypes/definitions with void argument
...+++ 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_callback_(const FLAC__SeekableStreamDecoder *decoder, FLAC__uint64 absolute_byte_offset, void *client_data); static FL...
2004 Sep 10
0
new checkins
...2,6 +22,11 @@ #include "stream_decoder.h" +#ifdef __cplusplus +extern "C" { +#endif + + typedef enum { FLAC__SEEKABLE_STREAM_DECODER_OK = 0, FLAC__SEEKABLE_STREAM_DECODER_SEEKING, @@ -163,5 +168,9 @@ FLAC__bool FLAC__seekable_stream_decoder_process_remaining_frames(FLAC__SeekableStreamDecoder *decoder); FLAC__bool FLAC__seekable_stream_decoder_seek_absolute(FLAC__SeekableStreamDecoder *decoder, FLAC__uint64 sample); + +#ifdef __cplusplus +} +#endif #endif Index: stream_decoder.h =================================================================== RCS file: /cvsroot/flac/flac/incl...
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
2005 Sep 30
2
Reg. FLAC decoding
I'm using seekable_stream_decoder, And., this is my write_callback. I'm not getting the required output. The PCM i get is not the proper music. Am I doing something wrong here? FLAC__StreamDecoderWriteStatus AFLACStreamPlayer::StreamWriteCb ( const FLAC__SeekableStreamDecoder *decoder, const FLAC__Frame *frame, const FLAC__int32 * const buffer[], void *client_data) { int Channels, BitsPerSample, BytesPerSample; RMstatus ret; AFLACStreamPlayer *pThis = (AFLACStreamPlayer *)client_data; pThis = (AFLACStreamPlayer *)client_data; /* Query the m_AppPlayerPi...
2004 Sep 10
0
Re: FLAC 1.0.3 is out
Josh Coalson <xflac@yahoo.com> wrote: > Yes, it's finally here. I'm looking into updating the OpenBSD port from 1.0.2 to 1.0.3 and I'm seeing some unhappiness in various regression tests: i386: | +++ libFLAC unit test: FLAC__SeekableStreamDecoder | | testing FLAC__seekable_stream_decoder_new()... OK | testing FLAC__seekable_stream_decoder_delete()... OK | testing FLAC__seekable_stream_decoder_new()... OK | testing FLAC__seekable_stream_decoder_init()... OK | testing FLAC__seekable_stream_decoder_delete()... Abort (core dumped) | ERROR d...
2004 Sep 10
3
FLAC 1.0.3 is out
Yes, it's finally here. See the homepage for details, but here's a summary: - 10-15% decoder speedup - 24-bit input support restored - more robust plugins - new metadata block for Vorbis-style tags - vastly improved metadata editor - fixed bug with pipes and Windows - new libFLAC++, a C++ object wrapper around libFLAC - new metadata editing interface in libFLAC and libFLAC++ - and
2005 Sep 30
0
Re: Reg. FLAC decoding
...I'm using seekable_stream_decoder, And., this is my write_callback. > I'm > not getting the required output. The PCM i get is not the proper > music. > Am I doing something wrong here? > > FLAC__StreamDecoderWriteStatus > AFLACStreamPlayer::StreamWriteCb ( > const FLAC__SeekableStreamDecoder *decoder, > const FLAC__Frame *frame, > const FLAC__int32 * const buffer[], > void *client_data) > { > int Channels, BitsPerSample, BytesPerSample; > RMstatus ret; > > AFLACStreamPlayer *pThis = (AFLACStreamPlayer *)client_data; > pThis = (AFLACStreamPlayer...
2005 Jan 25
0
bitbuffer optimizations
...coder, originally posted on 09/07/2003. -- Miroslav Lichvar -------------- next part -------------- --- seekable_stream_decoder.c.orig 2005-01-25 05:18:31.000000000 +0100 +++ seekable_stream_decoder.c 2005-01-25 23:39:03.000000000 +0100 @@ -857,11 +857,11 @@ FLAC__bool seek_to_absolute_sample_(FLAC__SeekableStreamDecoder *decoder, FLAC__uint64 stream_length, FLAC__uint64 target_sample) { - FLAC__uint64 first_frame_offset, lower_bound, upper_bound; - FLAC__int64 pos = -1, last_pos = -1; - int i, lower_seek_point = -1, upper_seek_point = -1; + FLAC__uint64 first_frame_offset, lower_bound, upper_bound, lower_bound_...
2004 Sep 10
2
better seeking
...is much better. -- Miroslav Lichvar -------------- next part -------------- --- src/libFLAC/seekable_stream_decoder.c.orig 2003-02-26 19:41:51.000000000 +0100 +++ src/libFLAC/seekable_stream_decoder.c 2003-07-09 23:49:35.000000000 +0200 @@ -816,11 +816,11 @@ FLAC__bool seek_to_absolute_sample_(FLAC__SeekableStreamDecoder *decoder, FLAC__uint64 stream_length, FLAC__uint64 target_sample) { - FLAC__uint64 first_frame_offset, lower_bound, upper_bound; - FLAC__int64 pos = -1, last_pos = -1; - int i, lower_seek_point = -1, upper_seek_point = -1; + FLAC__uint64 first_frame_offset, lower_bound, upper_bound, lower_bound_...
2004 Sep 10
4
bitbuffer optimizations
Ok, here is a patch waiting for new CVS :). It works fine for me, but please check it before commiting... -- Miroslav Lichvar -------------- next part -------------- --- src/libFLAC/bitbuffer.c.orig 2003-01-30 17:36:01.000000000 +0100 +++ src/libFLAC/bitbuffer.c 2003-01-30 21:53:18.000000000 +0100 @@ -51,6 +51,25 @@ */ static const unsigned FLAC__BITBUFFER_DEFAULT_CAPACITY = ((65536 - 64) *