mirror of
https://github.com/claunia/flac.git
synced 2025-12-16 18:54:26 +00:00
rename FLAC__Encoder to FLAC__StreamEncoder, OOPize encoder and decoder interfaces
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user