AgsOpenSf2Sample

AgsOpenSf2Sample — open SF2 sample object

Functions

Properties

AgsChannel * channel Read / Write
gchar * filename Read / Write
gchar * instrument Read / Write
gchar * preset Read / Write
gchar * sample Read / Write

Types and Values

Object Hierarchy

    GObject
    ╰── AgsTask
        ╰── AgsOpenSf2Sample

Implemented Interfaces

AgsOpenSf2Sample implements AgsConnectable.

Includes

#include <ags/audio/task/ags_open_sf2_sample.h>

Description

The AgsOpenSf2Sample task opens Soundfont2 samples.

Functions

ags_open_sf2_sample_new ()

AgsOpenSf2Sample *
ags_open_sf2_sample_new (AgsChannel *channel,
                         gchar *filename,
                         gchar *preset,
                         gchar *instrument,
                         gchar *sample);

Creates an AgsOpenSf2Sample.

Parameters

channel

the AgsChannel

 

filename

the Soundfont2 file

 

preset

the preset

 

instrument

the instrument

 

sample

the sample

 

Returns

an new AgsOpenSf2Sample.

Since: 1.0.0


AGS_IS_OPEN_SF2_SAMPLE()

#define AGS_IS_OPEN_SF2_SAMPLE(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_OPEN_SF2_SAMPLE))

AGS_OPEN_SF2_SAMPLE()

#define AGS_OPEN_SF2_SAMPLE(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_OPEN_SF2_SAMPLE, AgsOpenSf2Sample))

AGS_OPEN_SF2_SAMPLE_CLASS()

#define AGS_OPEN_SF2_SAMPLE_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_OPEN_SF2_SAMPLE, AgsOpenSf2SampleClass))

AGS_OPEN_SF2_SAMPLE_GET_CLASS()

#define AGS_OPEN_SF2_SAMPLE_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_OPEN_SF2_SAMPLE, AgsOpenSf2SampleClass))

ags_open_sf2_sample_get_type ()

GType
ags_open_sf2_sample_get_type ();

Types and Values

AGS_TYPE_OPEN_SF2_SAMPLE

#define AGS_TYPE_OPEN_SF2_SAMPLE                (ags_open_sf2_sample_get_type())

struct AgsOpenSf2Sample

struct AgsOpenSf2Sample;

struct AgsOpenSf2SampleClass

struct AgsOpenSf2SampleClass {
  AgsTaskClass task;
};

Property Details

The “channel” property

  “channel”                  AgsChannel *

The assigned AgsChannel

Flags: Read / Write

Since: 1.0.0


The “filename” property

  “filename”                 gchar *

The assigned filename.

Flags: Read / Write

Default value: NULL

Since: 1.0.0


The “instrument” property

  “instrument”               gchar *

The assigned instrument.

Flags: Read / Write

Default value: NULL

Since: 1.0.0


The “preset” property

  “preset”                   gchar *

The assigned preset.

Flags: Read / Write

Default value: NULL

Since: 1.0.0


The “sample” property

  “sample”                   gchar *

The assigned sample.

Flags: Read / Write

Default value: NULL

Since: 1.0.0