The interface here is nearly identical to FLAC's seekable stream encoder, including the callbacks, with the addition of a new required read callback (needed when writing back STREAMINFO after encoding) and OggFLAC__seekable_stream_encoder_set_serial_number(). See the FLAC seekable stream encoder module for full documentation.
|
Signature for the read callback. See OggFLAC__seekable_stream_encoder_set_read_callback() for more info.
|
|
Signature for the seek callback. See OggFLAC__seekable_stream_encoder_set_seek_callback() and FLAC__SeekableStreamEncoderSeekCallback for more info.
|
|
Signature for the tell callback. See OggFLAC__seekable_stream_encoder_set_tell_callback() and FLAC__SeekableStreamEncoderTellCallback for more info.
|
|
Signature for the write callback. See OggFLAC__seekable_stream_encoder_set_write_callback() and FLAC__SeekableStreamEncoderWriteCallback for more info.
|
|
State values for an OggFLAC__SeekableStreamEncoder The encoder's state can be obtained by calling OggFLAC__stream_encoder_get_state().
|
|
Return values for the OggFLAC__SeekableStreamEncoder read callback.
|
|
Create a new seekable stream encoder instance. The instance is created with default settings; see the individual OggFLAC__seekable_stream_encoder_set_*() functions for each setting's default.
|
|
Free an encoder instance. Deletes the object pointed to by encoder.
|
|
Set the serial number for the FLAC stream.
|
|
This is inherited from FLAC__StreamEncoder; see FLAC__stream_encoder_set_verify()
|
|
This is inherited from FLAC__StreamEncoder; see FLAC__stream_encoder_set_streamable_subset()
|
|
This is inherited from FLAC__StreamEncoder; see FLAC__stream_encoder_set_do_mid_side_stereo()
|
|
This is inherited from FLAC__StreamEncoder; see FLAC__stream_encoder_set_loose_mid_side_stereo()
|
|
This is inherited from FLAC__StreamEncoder; see FLAC__stream_encoder_set_channels()
|
|
This is inherited from FLAC__StreamEncoder; see FLAC__stream_encoder_set_bits_per_sample()
|
|
This is inherited from FLAC__StreamEncoder; see FLAC__stream_encoder_set_sample_rate()
|
|
This is inherited from FLAC__StreamEncoder; see FLAC__stream_encoder_set_blocksize()
|
|
This is inherited from FLAC__StreamEncoder; see FLAC__stream_encoder_set_max_lpc_order()
|
|
This is inherited from FLAC__StreamEncoder; see FLAC__stream_encoder_set_qlp_coeff_precision()
|
|
This is inherited from FLAC__StreamEncoder; see FLAC__stream_encoder_set_qlp_coeff_prec_search()
|
|
This is inherited from FLAC__StreamEncoder; see FLAC__stream_encoder_set_do_escape_coding()
|
|
This is inherited from FLAC__StreamEncoder; see FLAC__stream_encoder_set_do_exhaustive_model_search()
|
|
This is inherited from FLAC__StreamEncoder; see FLAC__stream_encoder_set_min_residual_partition_order()
|
|
This is inherited from FLAC__StreamEncoder; see FLAC__stream_encoder_set_max_residual_partition_order()
|
|
This is inherited from FLAC__StreamEncoder; see FLAC__stream_encoder_set_rice_parameter_search_dist()
|
|
This is inherited from FLAC__StreamEncoder; see FLAC__stream_encoder_set_total_samples_estimate()
|
|
This is inherited from FLAC__StreamEncoder; see FLAC__stream_encoder_set_metadata()
|
|
Set the read callback. The supplied function will be called when the encoder needs to read back encoded data. This happens during the metadata callback, when the encoder has to read, modify, and rewrite the metadata (e.g. seekpoints) gathered while encoding. The address of the buffer to be filled is supplied, along with the number of bytes the buffer can hold. The callback may choose to supply less data and modify the byte count but must be careful not to overflow the buffer. The callback then returns a status code chosen from OggFLAC__SeekableStreamEncoderReadStatus.
|
|
Set the seek callback. The supplied function will be called when the encoder needs to seek the output stream. The encoder will pass the absolute byte offset to seek to, 0 meaning the beginning of the stream.
|
|
Set the tell callback. The supplied function will be called when the encoder needs to know the current position of the output stream.
|
|
Set the write callback. This is inherited from FLAC__StreamEncoder; see FLAC__stream_encoder_set_write_callback().
|
|
Set the client data to be passed back to callbacks. This value will be supplied to callbacks in their client_data argument.
|
|
Get the current encoder state.
|
|
Get the state of the underlying FLAC stream encoder. Useful when the seekable stream encoder state is
|
|
Get the state of the underlying FLAC encoder's verify decoder. Useful when the seekable stream encoder state is
|
|
Get the current encoder state as a C string. This version automatically resolves
|
|
Get relevant values about the nature of a verify decoder error. Inherited from FLAC__stream_encoder_get_verify_decoder_error_stats(). Useful when the seekable stream encoder state is
|
|
This is inherited from FLAC__StreamEncoder; see FLAC__stream_encoder_get_verify()
|
|
This is inherited from FLAC__StreamEncoder; see FLAC__stream_encoder_get_streamable_subset()
|
|
This is inherited from FLAC__StreamEncoder; see FLAC__stream_encoder_get_do_mid_side_stereo()
|
|
This is inherited from FLAC__StreamEncoder; see FLAC__stream_encoder_get_loose_mid_side_stereo()
|
|
This is inherited from FLAC__StreamEncoder; see FLAC__stream_encoder_get_channels()
|
|
This is inherited from FLAC__StreamEncoder; see FLAC__stream_encoder_get_bits_per_sample()
|
|
This is inherited from FLAC__StreamEncoder; see FLAC__stream_encoder_get_sample_rate()
|
|
This is inherited from FLAC__StreamEncoder; see FLAC__stream_encoder_get_blocksize()
|
|
This is inherited from FLAC__StreamEncoder; see FLAC__stream_encoder_get_max_lpc_order()
|
|
This is inherited from FLAC__StreamEncoder; see FLAC__stream_encoder_get_qlp_coeff_precision()
|
|
This is inherited from FLAC__StreamEncoder; see FLAC__stream_encoder_get_do_qlp_coeff_prec_search()
|
|
This is inherited from FLAC__StreamEncoder; see FLAC__stream_encoder_get_do_escape_coding()
|
|
This is inherited from FLAC__StreamEncoder; see FLAC__stream_encoder_get_do_exhaustive_model_search()
|
|
This is inherited from FLAC__StreamEncoder; see FLAC__stream_encoder_get_min_residual_partition_order()
|
|
This is inherited from FLAC__StreamEncoder; see FLAC__stream_encoder_get_man_residual_partition_order()
|
|
This is inherited from FLAC__StreamEncoder; see FLAC__stream_encoder_get_rice_parameter_search_dist()
|
|
This is inherited from FLAC__StreamEncoder; see FLAC__stream_encoder_get_total_samples_estimate()
|
|
Initialize the encoder instance. Should be called after OggFLAC__seekable_stream_encoder_new() and OggFLAC__seekable_stream_encoder_set_*() but before OggFLAC__seekable_stream_encoder_process() or OggFLAC__seekable_stream_encoder_process_interleaved(). Will set and return the encoder state, which will be OggFLAC__SEEKABLE_STREAM_ENCODER_OK if initialization succeeded.
The call to OggFLAC__seekable_stream_encoder_init() currently will also immediately call the write callback several times, once with the
|
|
Finish the encoding process. Flushes the encoding buffer, releases resources, resets the encoder settings to their defaults, and returns the encoder state to OggFLAC__SEEKABLE_STREAM_ENCODER_UNINITIALIZED. Note that this can generate one or more write callbacks before returning. In the event of a prematurely-terminated encode, it is not strictly necessary to call this immediately before OggFLAC__seekable_stream_encoder_delete() but it is good practice to match every OggFLAC__seekable_stream_encoder_init() with an OggFLAC__seekable_stream_encoder_finish().
|
|
Submit data for encoding. This is inherited from FLAC__StreamEncoder; see FLAC__stream_encoder_process().
|
|
Submit data for encoding. This is inherited from FLAC__StreamEncoder; see FLAC__stream_encoder_process_interleaved().
|
|
Maps an OggFLAC__StreamEncoderState to a C string. Using an OggFLAC__StreamEncoderState as the index to this array will give the string equivalent. The contents should not be modified. |
|
Maps a OggFLAC__SeekableStreamEncoderReadStatus to a C string. Using a OggFLAC__SeekableStreamEncoderReadStatus as the index to this array will give the string equivalent. The contents should not be modified. |