## GeglAudioFragment

GeglAudioFragment

## Functions

GeglAudioFragment * | gegl_audio_fragment_new ()
void | gegl_audio_fragment_set_max_samples ()
void | gegl_audio_fragment_set_sample_rate ()
void | gegl_audio_fragment_set_channels ()
void | gegl_audio_fragment_set_channel_layout ()
void | gegl_audio_fragment_set_sample_count ()
void | gegl_audio_fragment_set_pos ()
int | gegl_audio_fragment_get_max_samples ()
int | gegl_audio_fragment_get_sample_rate ()
int | gegl_audio_fragment_get_channels ()
int | gegl_audio_fragment_get_sample_count ()
int | gegl_audio_fragment_get_pos ()
int | gegl_audio_fragment_get_channel_layout ()
GParamSpec * | gegl_param_spec_audio_fragment ()

## Types and Values

#define | GEGL_MAX_AUDIO_CHANNELS
#define | GEGL_CH_FRONT_LEFT
#define | GEGL_CH_FRONT_RIGHT
#define | GEGL_CH_FRONT_CENTER
#define | GEGL_CH_LOW_FREQUENCY
#define | GEGL_CH_BACK_LEFT
#define | GEGL_CH_BACK_RIGHT
#define | GEGL_CH_FRONT_LEFT_OF_CENTER
#define | GEGL_CH_FRONT_RIGHT_OF_CENTER
#define | GEGL_CH_BACK_CENTER
#define | GEGL_CH_SIDE_LEFT
#define | GEGL_CH_SIDE_RIGHT
#define | GEGL_CH_TOP_CENTER
#define | GEGL_CH_TOP_FRONT_LEFT
#define | GEGL_CH_TOP_FRONT_CENTER
#define | GEGL_CH_TOP_FRONT_RIGHT
#define | GEGL_CH_TOP_BACK_LEFT
#define | GEGL_CH_TOP_BACK_CENTER
#define | GEGL_CH_TOP_BACK_RIGHT
#define | GEGL_CH_STEREO_LEFT
#define | GEGL_CH_STEREO_RIGHT
#define | GEGL_CH_WIDE_LEFT
#define | GEGL_CH_WIDE_RIGHT
#define | GEGL_CH_SURROUND_DIRECT_LEFT
#define | GEGL_CH_SURROUND_DIRECT_RIGHT
#define | GEGL_CH_LOW_FREQUENCY_2
#define | GEGL_CH_LAYOUT_NATIVE
#define | GEGL_CH_LAYOUT_MONO
#define | GEGL_CH_LAYOUT_STEREO
#define | GEGL_CH_LAYOUT_2POINT1
#define | GEGL_CH_LAYOUT_2_1
#define | GEGL_CH_LAYOUT_SURROUND
#define | GEGL_CH_LAYOUT_3POINT1
#define | GEGL_CH_LAYOUT_4POINT0
#define | GEGL_CH_LAYOUT_4POINT1
#define | GEGL_CH_LAYOUT_2_2
#define | GEGL_CH_LAYOUT_QUAD
#define | GEGL_CH_LAYOUT_5POINT0
#define | GEGL_CH_LAYOUT_5POINT1
#define | GEGL_CH_LAYOUT_5POINT0_BACK
#define | GEGL_CH_LAYOUT_5POINT1_BACK
#define | GEGL_CH_LAYOUT_6POINT0
#define | GEGL_CH_LAYOUT_6POINT0_FRONT
#define | GEGL_CH_LAYOUT_HEXAGONAL
#define | GEGL_CH_LAYOUT_6POINT1
#define | GEGL_CH_LAYOUT_6POINT1_BACK
#define | GEGL_CH_LAYOUT_6POINT1_FRONT
#define | GEGL_CH_LAYOUT_7POINT0
#define | GEGL_CH_LAYOUT_7POINT0_FRONT
#define | GEGL_CH_LAYOUT_7POINT1
#define | GEGL_CH_LAYOUT_7POINT1_WIDE
#define | GEGL_CH_LAYOUT_7POINT1_WIDE_BACK
#define | GEGL_CH_LAYOUT_OCTAGONAL
#define | GEGL_CH_LAYOUT_HEXADECAGONAL
#define | GEGL_CH_LAYOUT_STEREO_DOWNMIX

## Description

## Functions

### gegl_audio_fragment_new ()

    GeglAudioFragment *
    gegl_audio_fragment_new (int sample_rate,
                             int channels,
                             int channel_layout,
                             int max_samples);

### gegl_audio_fragment_set_max_samples ()

    void
    gegl_audio_fragment_set_max_samples (GeglAudioFragment *audio,
                                         int max_samples);

### gegl_audio_fragment_set_sample_rate ()

    void
    gegl_audio_fragment_set_sample_rate (GeglAudioFragment *audio,
                                         int sample_rate);

### gegl_audio_fragment_set_channels ()

    void
    gegl_audio_fragment_set_channels (GeglAudioFragment *audio,
                                      int channels);

### gegl_audio_fragment_set_channel_layout ()

    void
    gegl_audio_fragment_set_channel_layout
                                   (GeglAudioFragment *audio,
                                    int channel_layout);

### gegl_audio_fragment_set_sample_count ()

    void
    gegl_audio_fragment_set_sample_count (GeglAudioFragment *audio,
                                          int sample_count);

### gegl_audio_fragment_set_pos ()

    void
    gegl_audio_fragment_set_pos (GeglAudioFragment *audio,
                                 int pos);

### gegl_audio_fragment_get_max_samples ()

    int
    gegl_audio_fragment_get_max_samples (GeglAudioFragment *audio);

### gegl_audio_fragment_get_sample_rate ()

    int
    gegl_audio_fragment_get_sample_rate (GeglAudioFragment *audio);

### gegl_audio_fragment_get_channels ()

    int
    gegl_audio_fragment_get_channels (GeglAudioFragment *audio);

### gegl_audio_fragment_get_sample_count ()

    int
    gegl_audio_fragment_get_sample_count (GeglAudioFragment *audio);

### gegl_audio_fragment_get_pos ()

    int
    gegl_audio_fragment_get_pos (GeglAudioFragment *audio);

### gegl_audio_fragment_get_channel_layout ()

    int
    gegl_audio_fragment_get_channel_layout
                                   (GeglAudioFragment *audio);

### gegl_param_spec_audio_fragment ()

    GParamSpec *
    gegl_param_spec_audio_fragment (const gchar *name,
                                    const gchar *nick,
                                    const gchar *blurb,
                                    GParamFlags flags);

Creates a new GParamSpec instance specifying a GeglAudioFragment property.

#### Parameters

name | canonical name of the property specified |
nick | nick name for the property specified |
blurb | description of the property specified |
flags | flags for the property specified |

#### Returns

a newly created parameter specification.

[transfer full]

## Types and Values

### GEGL_MAX_AUDIO_CHANNELS

    #define GEGL_MAX_AUDIO_CHANNELS 8

### GEGL_CH_FRONT_LEFT

    #define GEGL_CH_FRONT_LEFT             0x00000001

### GEGL_CH_FRONT_RIGHT

    #define GEGL_CH_FRONT_RIGHT            0x00000002

### GEGL_CH_FRONT_CENTER

    #define GEGL_CH_FRONT_CENTER           0x00000004

### GEGL_CH_LOW_FREQUENCY

    #define GEGL_CH_LOW_FREQUENCY          0x00000008

### GEGL_CH_BACK_LEFT

    #define GEGL_CH_BACK_LEFT              0x00000010

### GEGL_CH_BACK_RIGHT

    #define GEGL_CH_BACK_RIGHT             0x00000020

### GEGL_CH_FRONT_LEFT_OF_CENTER

    #define GEGL_CH_FRONT_LEFT_OF_CENTER   0x00000040

### GEGL_CH_FRONT_RIGHT_OF_CENTER

    #define GEGL_CH_FRONT_RIGHT_OF_CENTER  0x00000080

### GEGL_CH_BACK_CENTER

    #define GEGL_CH_BACK_CENTER            0x00000100

### GEGL_CH_SIDE_LEFT

    #define GEGL_CH_SIDE_LEFT              0x00000200

### GEGL_CH_SIDE_RIGHT

    #define GEGL_CH_SIDE_RIGHT             0x00000400

### GEGL_CH_TOP_CENTER

    #define GEGL_CH_TOP_CENTER             0x00000800

### GEGL_CH_TOP_FRONT_LEFT

    #define GEGL_CH_TOP_FRONT_LEFT         0x00001000

### GEGL_CH_TOP_FRONT_CENTER

    #define GEGL_CH_TOP_FRONT_CENTER       0x00002000

### GEGL_CH_TOP_FRONT_RIGHT

    #define GEGL_CH_TOP_FRONT_RIGHT        0x00004000

### GEGL_CH_TOP_BACK_LEFT

    #define GEGL_CH_TOP_BACK_LEFT          0x00008000

### GEGL_CH_TOP_BACK_CENTER

    #define GEGL_CH_TOP_BACK_CENTER        0x00010000

### GEGL_CH_TOP_BACK_RIGHT

    #define GEGL_CH_TOP_BACK_RIGHT         0x00020000

### GEGL_CH_STEREO_LEFT

    #define GEGL_CH_STEREO_LEFT            0x20000000  ///< Stereo downmix.

### GEGL_CH_STEREO_RIGHT

    #define GEGL_CH_STEREO_RIGHT           0x40000000  ///< See GEGL_CH_STEREO_LEFT.

### GEGL_CH_WIDE_LEFT

    #define GEGL_CH_WIDE_LEFT              0x0000000080000000ULL

### GEGL_CH_WIDE_RIGHT

    #define GEGL_CH_WIDE_RIGHT             0x0000000100000000ULL

### GEGL_CH_SURROUND_DIRECT_LEFT

    #define GEGL_CH_SURROUND_DIRECT_LEFT   0x0000000200000000ULL

### GEGL_CH_SURROUND_DIRECT_RIGHT

    #define GEGL_CH_SURROUND_DIRECT_RIGHT  0x0000000400000000ULL

### GEGL_CH_LOW_FREQUENCY_2

    #define GEGL_CH_LOW_FREQUENCY_2        0x0000000800000000ULL

### GEGL_CH_LAYOUT_NATIVE

    #define GEGL_CH_LAYOUT_NATIVE          0x8000000000000000ULL

### GEGL_CH_LAYOUT_MONO

    #define GEGL_CH_LAYOUT_MONO              (GEGL_CH_FRONT_CENTER)

### GEGL_CH_LAYOUT_STEREO

    #define GEGL_CH_LAYOUT_STEREO            (GEGL_CH_FRONT_LEFT|GEGL_CH_FRONT_RIGHT)

### GEGL_CH_LAYOUT_2POINT1

    #define GEGL_CH_LAYOUT_2POINT1           (GEGL_CH_LAYOUT_STEREO|GEGL_CH_LOW_FREQUENCY)

### GEGL_CH_LAYOUT_2_1

    #define GEGL_CH_LAYOUT_2_1               (GEGL_CH_LAYOUT_STEREO|GEGL_CH_BACK_CENTER)

### GEGL_CH_LAYOUT_SURROUND

    #define GEGL_CH_LAYOUT_SURROUND          (GEGL_CH_LAYOUT_STEREO|GEGL_CH_FRONT_CENTER)

### GEGL_CH_LAYOUT_3POINT1

    #define GEGL_CH_LAYOUT_3POINT1           (GEGL_CH_LAYOUT_SURROUND|GEGL_CH_LOW_FREQUENCY)

### GEGL_CH_LAYOUT_4POINT0

    #define GEGL_CH_LAYOUT_4POINT0           (GEGL_CH_LAYOUT_SURROUND|GEGL_CH_BACK_CENTER)

### GEGL_CH_LAYOUT_4POINT1

    #define GEGL_CH_LAYOUT_4POINT1           (GEGL_CH_LAYOUT_4POINT0|GEGL_CH_LOW_FREQUENCY)

### GEGL_CH_LAYOUT_2_2

    #define GEGL_CH_LAYOUT_2_2               (GEGL_CH_LAYOUT_STEREO|GEGL_CH_SIDE_LEFT|GEGL_CH_SIDE_RIGHT)

### GEGL_CH_LAYOUT_QUAD

    #define GEGL_CH_LAYOUT_QUAD              (GEGL_CH_LAYOUT_STEREO|GEGL_CH_BACK_LEFT|GEGL_CH_BACK_RIGHT)

### GEGL_CH_LAYOUT_5POINT0

    #define GEGL_CH_LAYOUT_5POINT0           (GEGL_CH_LAYOUT_SURROUND|GEGL_CH_SIDE_LEFT|GEGL_CH_SIDE_RIGHT)

### GEGL_CH_LAYOUT_5POINT1

    #define GEGL_CH_LAYOUT_5POINT1           (GEGL_CH_LAYOUT_5POINT0|GEGL_CH_LOW_FREQUENCY)

### GEGL_CH_LAYOUT_5POINT0_BACK

    #define GEGL_CH_LAYOUT_5POINT0_BACK      (GEGL_CH_LAYOUT_SURROUND|GEGL_CH_BACK_LEFT|GEGL_CH_BACK_RIGHT)

### GEGL_CH_LAYOUT_5POINT1_BACK

    #define GEGL_CH_LAYOUT_5POINT1_BACK      (GEGL_CH_LAYOUT_5POINT0_BACK|GEGL_CH_LOW_FREQUENCY)

### GEGL_CH_LAYOUT_6POINT0

    #define GEGL_CH_LAYOUT_6POINT0           (GEGL_CH_LAYOUT_5POINT0|GEGL_CH_BACK_CENTER)

### GEGL_CH_LAYOUT_6POINT0_FRONT

    #define GEGL_CH_LAYOUT_6POINT0_FRONT     (GEGL_CH_LAYOUT_2_2|GEGL_CH_FRONT_LEFT_OF_CENTER|GEGL_CH_FRONT_RIGHT_OF_CENTER)

### GEGL_CH_LAYOUT_HEXAGONAL

    #define GEGL_CH_LAYOUT_HEXAGONAL         (GEGL_CH_LAYOUT_5POINT0_BACK|GEGL_CH_BACK_CENTER)

### GEGL_CH_LAYOUT_6POINT1

    #define GEGL_CH_LAYOUT_6POINT1           (GEGL_CH_LAYOUT_5POINT1|GEGL_CH_BACK_CENTER)

### GEGL_CH_LAYOUT_6POINT1_BACK

    #define GEGL_CH_LAYOUT_6POINT1_BACK      (GEGL_CH_LAYOUT_5POINT1_BACK|GEGL_CH_BACK_CENTER)

### GEGL_CH_LAYOUT_6POINT1_FRONT

    #define GEGL_CH_LAYOUT_6POINT1_FRONT     (GEGL_CH_LAYOUT_6POINT0_FRONT|GEGL_CH_LOW_FREQUENCY)

### GEGL_CH_LAYOUT_7POINT0

    #define GEGL_CH_LAYOUT_7POINT0           (GEGL_CH_LAYOUT_5POINT0|GEGL_CH_BACK_LEFT|GEGL_CH_BACK_RIGHT)

### GEGL_CH_LAYOUT_7POINT0_FRONT

    #define GEGL_CH_LAYOUT_7POINT0_FRONT     (GEGL_CH_LAYOUT_5POINT0|GEGL_CH_FRONT_LEFT_OF_CENTER|GEGL_CH_FRONT_RIGHT_OF_CENTER)

### GEGL_CH_LAYOUT_7POINT1

    #define GEGL_CH_LAYOUT_7POINT1           (GEGL_CH_LAYOUT_5POINT1|GEGL_CH_BACK_LEFT|GEGL_CH_BACK_RIGHT)

### GEGL_CH_LAYOUT_7POINT1_WIDE

    #define GEGL_CH_LAYOUT_7POINT1_WIDE      (GEGL_CH_LAYOUT_5POINT1|GEGL_CH_FRONT_LEFT_OF_CENTER|GEGL_CH_FRONT_RIGHT_OF_CENTER)

### GEGL_CH_LAYOUT_7POINT1_WIDE_BACK

    #define GEGL_CH_LAYOUT_7POINT1_WIDE_BACK (GEGL_CH_LAYOUT_5POINT1_BACK|GEGL_CH_FRONT_LEFT_OF_CENTER|GEGL_CH_FRONT_RIGHT_OF_CENTER)

### GEGL_CH_LAYOUT_OCTAGONAL

    #define GEGL_CH_LAYOUT_OCTAGONAL         (GEGL_CH_LAYOUT_5POINT0|GEGL_CH_BACK_LEFT|GEGL_CH_BACK_CENTER|GEGL_CH_BACK_RIGHT)

### GEGL_CH_LAYOUT_HEXADECAGONAL

    #define GEGL_CH_LAYOUT_HEXADECAGONAL     (GEGL_CH_LAYOUT_OCTAGONAL|GEGL_CH_WIDE_LEFT|GEGL_CH_WIDE_RIGHT|GEGL_CH_TOP_BACK_LEFT|GEGL_CH_TOP_BACK_RIGHT|GEGL_CH_TOP_BACK_CENTER|GEGL_CH_TOP_FRONT_CENTER|GEGL_CH_TOP_FRONT_LEFT|GEGL_CH_TOP_FRONT_RIGHT)

### GEGL_CH_LAYOUT_STEREO_DOWNMIX

    #define GEGL_CH_LAYOUT_STEREO_DOWNMIX    (GEGL_CH_STEREO_LEFT|GEGL_CH_STEREO_RIGHT)