AgsInput

AgsInput — Input of AgsAudio

Functions

Properties

AgsFileLink * file-link Read / Write

Types and Values

#define AGS_TYPE_INPUT
struct AgsInput
struct AgsInputClass

Object Hierarchy

    GObject
    ╰── AgsChannel
        ╰── AgsInput

Implemented Interfaces

AgsInput implements AgsConnectable.

Includes

#include <ags/audio/ags_input.h>

Description

AgsInput represents an input channel of AgsAudio.

Functions

ags_input_open_file ()

gboolean
ags_input_open_file (AgsInput *input,
                     gchar *filename,
                     gchar *preset,
                     gchar *instrument,
                     gchar *sample,
                     guint audio_channel);


ags_input_apply_synth ()

gboolean
ags_input_apply_synth (AgsInput *input,
                       guint oscillator,
                       gdouble frequency,
                       gdouble phase,
                       gdouble volume,
                       guint n_frames);


ags_input_new ()

AgsInput *
ags_input_new (GObject *audio);

Creates a AgsInput, linking tree to audio .

Parameters

audio

the AgsAudio

 

Returns

a new AgsInput

Since: 0.3


AGS_INPUT()

#define AGS_INPUT(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_INPUT, AgsInput))


AGS_INPUT_CLASS()

#define AGS_INPUT_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_INPUT, AgsInputClass))


AGS_INPUT_GET_CLASS()

#define AGS_INPUT_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_INPUT, AgsInputClass))


AGS_IS_INPUT()

#define AGS_IS_INPUT(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_INPUT))


AGS_IS_INPUT_CLASS()

#define AGS_IS_INPUT_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_INPUT))


ags_input_get_type ()

GType
ags_input_get_type ();

Types and Values

AGS_TYPE_INPUT

#define AGS_TYPE_INPUT                (ags_input_get_type())


struct AgsInput

struct AgsInput;


struct AgsInputClass

struct AgsInputClass {
  AgsChannelClass channel;
};

Property Details

The “file-link” property

  “file-link”                AgsFileLink *

The file containing audio data.

Flags: Read / Write

Since: 0.4.0