rename FLAC__Encoder to FLAC__StreamEncoder, OOPize encoder and decoder interfaces

This commit is contained in:
Josh Coalson
2001-06-13 17:59:57 +00:00
parent 244ce1114c
commit 0a15c14c6e
21 changed files with 1646 additions and 1185 deletions

View File

@@ -16,4 +16,7 @@
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
noinst_HEADERS = stream_decoder.h
noinst_HEADERS = \
file_decoder.h \
stream_decoder.h \
stream_encoder.h

View File

@@ -22,7 +22,18 @@
#include "FLAC/stream_decoder.h"
/* only useful to the file_decoder */
unsigned FLAC__stream_decoder_input_bytes_unconsumed(FLAC__StreamDecoder *decoder);
typedef struct FLAC__StreamDecoderProtected {
FLAC__StreamDecoderState state;
unsigned channels;
FLAC__ChannelAssignment channel_assignment;
unsigned bits_per_sample;
unsigned sample_rate; /* in Hz */
unsigned blocksize; /* in samples (per channel) */
} FLAC__StreamDecoderProtected;
/*
* return the number of input bytes consumed
*/
unsigned FLAC__stream_decoder_input_bytes_unconsumed(const FLAC__StreamDecoder *decoder);
#endif