several fixes

This commit is contained in:
Josh Coalson
2002-08-07 17:39:24 +00:00
parent 79600e1fdd
commit edc9fee9b2
2 changed files with 9 additions and 6 deletions

View File

@@ -72,9 +72,12 @@ typedef enum {
OggFLAC__STREAM_DECODER_OK = 0, OggFLAC__STREAM_DECODER_OK = 0,
/**< The decoder is in the normal OK state. */ /**< The decoder is in the normal OK state. */
OggFLAC__STREAM_ENCODER_OGG_ERROR, OggFLAC__STREAM_DECODER_OGG_ERROR,
/**< An error occurred in the underlying Ogg layer. */ /**< An error occurred in the underlying Ogg layer. */
OggFLAC__STREAM_DECODER_READ_ERROR,
/**< The read callback returned an error. */
OggFLAC__STREAM_DECODER_FLAC_STREAM_DECODER_ERROR, OggFLAC__STREAM_DECODER_FLAC_STREAM_DECODER_ERROR,
/**< An error occurred in the underlying FLAC stream decoder; /**< An error occurred in the underlying FLAC stream decoder;
* check OggFLAC__stream_decoder_get_FLAC_stream_decoder_state(). * check OggFLAC__stream_decoder_get_FLAC_stream_decoder_state().
@@ -253,7 +256,7 @@ FLAC__bool OggFLAC__stream_decoder_set_client_data(OggFLAC__StreamDecoder *decod
* \retval FLAC__bool * \retval FLAC__bool
* \c false if the decoder is already initialized, else \c true. * \c false if the decoder is already initialized, else \c true.
*/ */
FLAC__bool OggFLAC__stream_decoder_set_metadata_respond(OggFLAC__StreamDecoder *decoder, OggFLAC__MetadataType type); FLAC__bool OggFLAC__stream_decoder_set_metadata_respond(OggFLAC__StreamDecoder *decoder, FLAC__MetadataType type);
/** Direct the decoder to pass on all APPLICATION metadata blocks of the /** Direct the decoder to pass on all APPLICATION metadata blocks of the
* given \a id. * given \a id.
@@ -297,7 +300,7 @@ FLAC__bool OggFLAC__stream_decoder_set_metadata_respond_all(OggFLAC__StreamDecod
* \retval FLAC__bool * \retval FLAC__bool
* \c false if the decoder is already initialized, else \c true. * \c false if the decoder is already initialized, else \c true.
*/ */
FLAC__bool OggFLAC__stream_decoder_set_metadata_ignore(OggFLAC__StreamDecoder *decoder, OggFLAC__MetadataType type); FLAC__bool OggFLAC__stream_decoder_set_metadata_ignore(OggFLAC__StreamDecoder *decoder, FLAC__MetadataType type);
/** Direct the decoder to filter out all APPLICATION metadata blocks of /** Direct the decoder to filter out all APPLICATION metadata blocks of
* the given \a id. * the given \a id.
@@ -368,7 +371,7 @@ unsigned OggFLAC__stream_decoder_get_channels(const OggFLAC__StreamDecoder *deco
* \retval OggFLAC__ChannelAssignment * \retval OggFLAC__ChannelAssignment
* See above. * See above.
*/ */
OggFLAC__ChannelAssignment OggFLAC__stream_decoder_get_channel_assignment(const OggFLAC__StreamDecoder *decoder); FLAC__ChannelAssignment OggFLAC__stream_decoder_get_channel_assignment(const OggFLAC__StreamDecoder *decoder);
/** This is inherited from FLAC__StreamDecoder; see FLAC__stream_decoder_get_bits_per_sample() /** This is inherited from FLAC__StreamDecoder; see FLAC__stream_decoder_get_bits_per_sample()
* *

View File

@@ -123,7 +123,7 @@ typedef struct {
} OggFLAC__StreamEncoder; } OggFLAC__StreamEncoder;
/*@@@@ document: */ /*@@@@ document: */
typedef OggFLAC__StreamEncoderWriteStatus (*OggFLAC__StreamEncoderWriteCallback)(const OggFLAC__StreamEncoder *encoder, const FLAC__byte buffer[], unsigned bytes, unsigned samples, unsigned current_frame, void *client_data); typedef FLAC__StreamEncoderWriteStatus (*OggFLAC__StreamEncoderWriteCallback)(const OggFLAC__StreamEncoder *encoder, const FLAC__byte buffer[], unsigned bytes, unsigned samples, unsigned current_frame, void *client_data);
/*********************************************************************** /***********************************************************************
@@ -371,7 +371,7 @@ FLAC__bool OggFLAC__stream_encoder_set_total_samples_estimate(OggFLAC__StreamEnc
* \retval FLAC__bool * \retval FLAC__bool
* \c false if the encoder is already initialized, else \c true. * \c false if the encoder is already initialized, else \c true.
*/ */
FLAC__bool OggFLAC__stream_encoder_set_metadata(OggFLAC__StreamEncoder *encoder, OggFLAC__StreamMetadata **metadata, unsigned num_blocks); FLAC__bool OggFLAC__stream_encoder_set_metadata(OggFLAC__StreamEncoder *encoder, FLAC__StreamMetadata **metadata, unsigned num_blocks);
/** Set the write callback. /** Set the write callback.
* *