AgsMidiin

AgsMidiin — Input from sequencer

Stability Level

Stable, unless otherwise indicated

Functions

Types and Values

Includes

#include <ags/audio/ags_midiin.h>

Description

AgsMidiin represents a sequencer and supports midi input.

Functions

AGS_MIDIIN_GET_OBJ_MUTEX()

#define AGS_MIDIIN_GET_OBJ_MUTEX(obj) (&(((AgsMidiin *) obj)->obj_mutex))

ags_midiin_error_quark ()

GQuark
ags_midiin_error_quark ();

ags_midiin_test_flags ()

gboolean
ags_midiin_test_flags (AgsMidiin *midiin,
                       guint flags);

Test flags to be set on midiin .

Parameters

midiin

the AgsMidiin

 

flags

the flags

 

Returns

TRUE if flags are set, else FALSE

Since: 3.0.0


ags_midiin_set_flags ()

void
ags_midiin_set_flags (AgsMidiin *midiin,
                      guint flags);

Enable a feature of midiin .

Parameters

midiin

the AgsMidiin

 

flags

see AgsMidiinFlags

 

Since: 3.0.0


ags_midiin_unset_flags ()

void
ags_midiin_unset_flags (AgsMidiin *midiin,
                        guint flags);

Disable a feature of midiin .

Parameters

midiin

the AgsMidiin

 

flags

see AgsMidiinFlags

 

Since: 3.0.0


ags_midiin_switch_buffer_flag ()

void
ags_midiin_switch_buffer_flag (AgsMidiin *midiin);

The buffer flag indicates the currently played buffer.

Parameters

midiin

the AgsMidiin

 

Since: 3.0.0


ags_midiin_new ()

AgsMidiin *
ags_midiin_new ();

Creates a new instance of AgsMidiin.

Returns

the new AgsMidiin

Since: 3.0.0

Types and Values

AGS_MIDIIN_DEFAULT_ALSA_DEVICE

#define AGS_MIDIIN_DEFAULT_ALSA_DEVICE "hw:0,0"

AGS_MIDIIN_DEFAULT_OSS_DEVICE

#define AGS_MIDIIN_DEFAULT_OSS_DEVICE "/dev/midi00"

AGS_MIDIIN_DEFAULT_BUFFER_SIZE

#define AGS_MIDIIN_DEFAULT_BUFFER_SIZE (4096)

enum AgsMidiinFlags

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

Members

AGS_MIDIIN_ADDED_TO_REGISTRY

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

 

AGS_MIDIIN_CONNECTED

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

 

AGS_MIDIIN_BUFFER0

ring-buffer 0

 

AGS_MIDIIN_BUFFER1

ring-buffer 1

 

AGS_MIDIIN_BUFFER2

ring-buffer 2

 

AGS_MIDIIN_BUFFER3

ring-buffer 3

 

AGS_MIDIIN_ATTACK_FIRST

use first attack, instead of second one

 

AGS_MIDIIN_RECORD

is recording

 

AGS_MIDIIN_OSS

use OSS4 backend

 

AGS_MIDIIN_ALSA

use ALSA backend

 

AGS_MIDIIN_SHUTDOWN

stop recording

 

AGS_MIDIIN_START_RECORD

just started recording

 

AGS_MIDIIN_NONBLOCKING

do non-blocking calls

 

AGS_MIDIIN_INITIALIZED

recording is initialized

 

enum AgsMidiinSyncFlags

Enum values to control the synchronization between sequencer and poll.

Members

AGS_MIDIIN_PASS_THROUGH

do not sync

 

AGS_MIDIIN_INITIAL_POLL

initial poll

 

AGS_MIDIIN_POLL_WAIT

sync wait, sequencer conditional lock

 

AGS_MIDIIN_POLL_DONE

sync done, sequencer conditional lock

 

AGS_MIDIIN_POLL_FINISH_WAIT

sync wait, client conditional lock

 

AGS_MIDIIN_POLL_FINISH_DONE

sync done, client conditional lock

 

AGS_MIDIIN_POLL_SWITCH_BUFFER

switch buffer

 

AGS_MIDIIN_ERROR

#define AGS_MIDIIN_ERROR (ags_midiin_error_quark())

enum AgsMidiinError

Members

AGS_MIDIIN_ERROR_LOCKED_SEQUENCER