krähemann.com

AgsGstreamerFile

AgsGstreamerFile — gstreamer file

Properties

guint audio-channels Read / Write
guint buffer-size Read / Write
gchar * filename Read / Write
guint format Read / Write
guint samplerate Read / Write

Object Hierarchy

    GObject
    ╰── AgsGstreamerFile

Implemented Interfaces

AgsGstreamerFile implements AgsConnectable and AgsSoundResource.

Includes

#include <ags/audio/file/ags_gstreamer_file.h>

Description

AgsGstreamerFile is the base object to ineract with libgstreamer-1.0 file support.

Functions

AGS_GSTREAMER_FILE_GET_OBJ_MUTEX()

#define AGS_GSTREAMER_FILE_GET_OBJ_MUTEX(obj) (&(((AgsGstreamerFile *) obj)->obj_mutex))

AGS_GSTREAMER_FILE_CHUNK_FRAME_COUNT()

#define AGS_GSTREAMER_FILE_CHUNK_FRAME_COUNT(cc) (cc * 256)

ags_gstreamer_file_test_flags ()

gboolean
ags_gstreamer_file_test_flags (AgsGstreamerFile *gstreamer_file,
                               guint flags);

Test flags to be set on gstreamer_file .

Parameters

gstreamer_file

the AgsGstreamerFile

 

flags

the flags

 

Returns

TRUE if flags are set, else FALSE

Since: 3.6.0


ags_gstreamer_file_set_flags ()

void
ags_gstreamer_file_set_flags (AgsGstreamerFile *gstreamer_file,
                              guint flags);

Enable a feature of gstreamer_file .

Parameters

gstreamer_file

the AgsGstreamerFile

 

flags

see AgsGstreamerFileFlags

 

Since: 3.6.0


ags_gstreamer_file_unset_flags ()

void
ags_gstreamer_file_unset_flags (AgsGstreamerFile *gstreamer_file,
                                guint flags);

Disable a feature of gstreamer_file .

Parameters

gstreamer_file

the AgsGstreamerFile

 

flags

see AgsGstreamerFileFlags

 

Since: 3.6.0


ags_gstreamer_file_check_suffix ()

gboolean
ags_gstreamer_file_check_suffix (gchar *filename);

Check suffix.

Parameters

filename

the filename

 

Returns

TRUE if suffix supported, else FALSE

Since: 3.6.0


ags_gstreamer_file_create_wav_encoding_profile ()

GstEncodingProfile *
ags_gstreamer_file_create_wav_encoding_profile
                               (AgsGstreamerFile *gstreamer_file);

Create wav rw pipeline.

Parameters

gstreamer_file

the AgsGstreamerFile

 

Returns

the new GstEncodingProfile

Since: 3.6.0


ags_gstreamer_file_create_mp3_encoding_profile ()

GstEncodingProfile *
ags_gstreamer_file_create_mp3_encoding_profile
                               (AgsGstreamerFile *gstreamer_file);

Create mp3 rw pipeline.

Parameters

gstreamer_file

the AgsGstreamerFile

 

Returns

the new GstEncodingProfile

Since: 3.6.0


ags_gstreamer_file_create_aac_encoding_profile ()

GstEncodingProfile *
ags_gstreamer_file_create_aac_encoding_profile
                               (AgsGstreamerFile *gstreamer_file);

Create aac rw pipeline.

Parameters

gstreamer_file

the AgsGstreamerFile

 

Returns

the new GstEncodingProfile

Since: 3.6.0


ags_gstreamer_file_create_mp4_encoding_profile ()

GstEncodingProfile *
ags_gstreamer_file_create_mp4_encoding_profile
                               (AgsGstreamerFile *gstreamer_file);

Create mp4 rw pipeline.

Parameters

gstreamer_file

the AgsGstreamerFile

 

Returns

the new GstEncodingProfile

Since: 3.6.0


ags_gstreamer_file_create_mkv_encoding_profile ()

GstEncodingProfile *
ags_gstreamer_file_create_mkv_encoding_profile
                               (AgsGstreamerFile *gstreamer_file);

Create mkv rw pipeline.

Parameters

gstreamer_file

the AgsGstreamerFile

 

Returns

the new GstEncodingProfile

Since: 3.6.0


ags_gstreamer_file_create_webm_encoding_profile ()

GstEncodingProfile *
ags_gstreamer_file_create_webm_encoding_profile
                               (AgsGstreamerFile *gstreamer_file);

Create webm rw pipeline.

Parameters

gstreamer_file

the AgsGstreamerFile

 

Returns

the new GstEncodingProfile

Since: 3.6.0


ags_gstreamer_file_create_mpeg_encoding_profile ()

GstEncodingProfile *
ags_gstreamer_file_create_mpeg_encoding_profile
                               (AgsGstreamerFile *gstreamer_file);

Create mpeg rw pipeline.

Parameters

gstreamer_file

the AgsGstreamerFile

 

Returns

the new GstEncodingProfile

Since: 3.6.0


ags_gstreamer_file_detect_encoding_profile ()

gboolean
ags_gstreamer_file_detect_encoding_profile
                               (AgsGstreamerFile *gstreamer_file);

Detect rw and create rw pipeline.

Parameters

gstreamer_file

the AgsGstreamerFile

 

Since: 3.6.0


ags_gstreamer_file_new ()

AgsGstreamerFile *
ags_gstreamer_file_new ();

Creates a new instance of AgsGstreamerFile.

Returns

the new AgsGstreamerFile.

Since: 3.6.0


AGS_GSTREAMER_FILE()

#define AGS_GSTREAMER_FILE(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_GSTREAMER_FILE, AgsGstreamerFile))

AGS_GSTREAMER_FILE_CLASS()

#define AGS_GSTREAMER_FILE_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_GSTREAMER_FILE, AgsGstreamerFileClass))

AGS_GSTREAMER_FILE_GET_CLASS()

#define AGS_GSTREAMER_FILE_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_GSTREAMER_FILE, AgsGstreamerFileClass))

AGS_IS_GSTREAMER_FILE()

#define AGS_IS_GSTREAMER_FILE(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_GSTREAMER_FILE))

AGS_IS_GSTREAMER_FILE_CLASS()

#define AGS_IS_GSTREAMER_FILE_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_GSTREAMER_FILE))

ags_gstreamer_file_get_type ()

GType
ags_gstreamer_file_get_type ();

Types and Values

AGS_GSTREAMER_FILE_DEFAULT_AUDIO_CHANNELS

#define AGS_GSTREAMER_FILE_DEFAULT_AUDIO_CHANNELS (1)

AGS_GSTREAMER_FILE_DEFAULT_FORMAT

#define AGS_GSTREAMER_FILE_DEFAULT_FORMAT (AGS_SOUNDCARD_SIGNED_16_BIT)

AGS_GSTREAMER_FILE_DEFAULT_FLUSH_IDLE

#define AGS_GSTREAMER_FILE_DEFAULT_FLUSH_IDLE (4)

AGS_GSTREAMER_FILE_DEFAULT_DISCOVERER_TIMEOUT

#define AGS_GSTREAMER_FILE_DEFAULT_DISCOVERER_TIMEOUT (3 * GST_SECOND)

enum AgsGstreamerFileFlags

Enum values to control the behavior or indicate internal state of AgsGstreamerFile by enable/disable as flags.

Members

AGS_GSTREAMER_FILE_ADDED_TO_REGISTRY

the gstreamer_file was added to registry, see AgsConnectable::add_to_registry()

 

AGS_GSTREAMER_FILE_CONNECTED

indicates the gstreamer_file was connected by calling AgsConnectable::connect()

 

AGS_TYPE_GSTREAMER_FILE

#define AGS_TYPE_GSTREAMER_FILE                (ags_gstreamer_file_get_type())

struct AgsGstreamerFile

struct AgsGstreamerFile;

struct AgsGstreamerFileClass

struct AgsGstreamerFileClass {
  GObjectClass gobject;
};

Property Details

The “audio-channels” property

  “audio-channels”           guint

The audio channels to be used.

Owner: AgsGstreamerFile

Flags: Read / Write

Default value: 0

Since: 3.6.0


The “buffer-size” property

  “buffer-size”              guint

The buffer size to be used.

Owner: AgsGstreamerFile

Flags: Read / Write

Default value: 0

Since: 3.6.0


The “filename” property

  “filename”                 gchar *

The assigned filename.

Owner: AgsGstreamerFile

Flags: Read / Write

Default value: NULL

Since: 3.6.0


The “format” property

  “format”                   guint

The format to be used.

Owner: AgsGstreamerFile

Flags: Read / Write

Default value: 0

Since: 3.6.0


The “samplerate” property

  “samplerate”               guint

The samplerate to be used.

Owner: AgsGstreamerFile

Flags: Read / Write

Default value: 0

Since: 3.6.0