| OGMRip Reference Manual | ||||
|---|---|---|---|---|
#include <ogmrip-audio-codec.h>
OGMRipAudioCodec;
OGMRipAudioCodecClass;
OGMDvdAudioStream* ogmrip_audio_codec_get_dvd_audio_stream
(OGMRipAudioCodec *audio);
void ogmrip_audio_codec_set_dvd_audio_stream
(OGMRipAudioCodec *audio,
OGMDvdAudioStream *stream);
gint ogmrip_audio_codec_get_channels (OGMRipAudioCodec *audio);
void ogmrip_audio_codec_set_channels (OGMRipAudioCodec *audio,
OGMDvdAudioChannels channels);
gboolean ogmrip_audio_codec_get_fast (OGMRipAudioCodec *audio);
void ogmrip_audio_codec_set_fast (OGMRipAudioCodec *audio,
gboolean fast);
gchar* ogmrip_audio_codec_get_label (OGMRipAudioCodec *audio);
void ogmrip_audio_codec_set_label (OGMRipAudioCodec *audio,
const gchar *label);
gboolean ogmrip_audio_codec_get_normalize (OGMRipAudioCodec *audio);
void ogmrip_audio_codec_set_normalize (OGMRipAudioCodec *audio,
gboolean normalize);
gint ogmrip_audio_codec_get_quality (OGMRipAudioCodec *audio);
void ogmrip_audio_codec_set_quality (OGMRipAudioCodec *audio,
guint quality);
gint ogmrip_audio_codec_get_sample_rate (OGMRipAudioCodec *audio);
void ogmrip_audio_codec_set_sample_rate (OGMRipAudioCodec *audio,
guint srate);
gint ogmrip_audio_codec_get_samples_per_frame
(OGMRipAudioCodec *audio);
GObject +----OGMJobSpawn +----OGMJobContainer +----OGMJobBin +----OGMRipCodec +----OGMRipAudioCodec
"channels" guint : Read / Write "fast" gboolean : Read / Write "normalize" gboolean : Read / Write "quality" guint : Read / Write "samples-per-frame" guint : Read "stream" gpointer : Read / Write
typedef struct {
OGMRipCodecClass parent_class;
/* vtable */
gint (* get_samples_per_frame) (OGMRipAudioCodec *audio);
} OGMRipAudioCodecClass;
OGMDvdAudioStream* ogmrip_audio_codec_get_dvd_audio_stream (OGMRipAudioCodec *audio);
Gets the audio stream to encode.
|
an OGMRipAudioCodec |
Returns : |
an OGMDvdAudioStream, or NULL |
void ogmrip_audio_codec_set_dvd_audio_stream
(OGMRipAudioCodec *audio,
OGMDvdAudioStream *stream);
Sets the audio stream to encode.
|
an OGMRipAudioCodec |
|
an OGMDvdAudioStream |
gint ogmrip_audio_codec_get_channels (OGMRipAudioCodec *audio);
Gets the number of channels of the output file.
|
an OGMRipAudioCodec |
Returns : |
an OGMDvdAudioChannels, or -1 |
void ogmrip_audio_codec_set_channels (OGMRipAudioCodec *audio, OGMDvdAudioChannels channels);
Sets the number of channels of the output file.
|
an OGMRipAudioCodec |
|
an OGMDvdAudioChannels |
gboolean ogmrip_audio_codec_get_fast (OGMRipAudioCodec *audio);
Returns whether to encode faster than realtime.
|
an OGMRipAudioCodec |
Returns : |
TRUE if fast encoding is enabled
|
void ogmrip_audio_codec_set_fast (OGMRipAudioCodec *audio, gboolean fast);
Sets whether to encode faster than realtime.
|
an OGMRipAudioCodec |
|
TRUE to enable fast encoding
|
gchar* ogmrip_audio_codec_get_label (OGMRipAudioCodec *audio);
Gets the name of the track.
|
an OGMRipAudioCodec |
Returns : |
the track name |
void ogmrip_audio_codec_set_label (OGMRipAudioCodec *audio, const gchar *label);
Sets the name of the track.
|
an OGMRipAudioCodec |
|
the track name |
gboolean ogmrip_audio_codec_get_normalize (OGMRipAudioCodec *audio);
Returns whether the volume of the audio stream should be normalized.
|
an OGMRipAudioCodec |
Returns : |
TRUE if normalization is enabled
|
void ogmrip_audio_codec_set_normalize (OGMRipAudioCodec *audio, gboolean normalize);
Sets whether to normalize the volume of the audio stream.
|
an OGMRipAudioCodec |
|
TRUE to enable normalization
|
gint ogmrip_audio_codec_get_quality (OGMRipAudioCodec *audio);
Gets the quality of the encoding, 0 for lowest, 10 for best.
|
an OGMRipAudioCodec |
Returns : |
the quality, or -1 |
void ogmrip_audio_codec_set_quality (OGMRipAudioCodec *audio, guint quality);
Sets the quality of the encoding, 0 for lowest, 10 for best.
|
an OGMRipAudioCodec |
|
the quality of the encoding |
gint ogmrip_audio_codec_get_sample_rate (OGMRipAudioCodec *audio);
Gets the output sample rate.
|
an OGMRipAudioCodec |
Returns : |
the sample rate |
void ogmrip_audio_codec_set_sample_rate (OGMRipAudioCodec *audio, guint srate);
Sets the output sample rate to be used.
|
an OGMRipAudioCodec |
|
the sample rate |
gint ogmrip_audio_codec_get_samples_per_frame (OGMRipAudioCodec *audio);
Gets the number of samples per frame.
|
an OGMRipAudioCodec |
Returns : |
the number of samples per frame, or -1 |
"channels" property"channels" guint : Read / Write
Set channels.
Allowed values: <= 10
Default value: 1
"quality" property"quality" guint : Read / Write
Set quality.
Allowed values: <= 10
Default value: 3
"samples-per-frame" property"samples-per-frame" guint : Read
Set samples per frame.
Default value: 512