Class

AgsAudioAudioSignal

Description

class AgsAudio.AudioSignal : GObject.Object
  implements Ags.Connectable {
  flags: AgsAudioSignalFlags,
  connectable_flags: AgsConnectableFlags,
  key_format: AgsSoundKeyFormat,
  obj_mutex: GRecMutex,
  uuid: AgsUUID*,
  recycling: GObject*,
  output_soundcard: GObject*,
  output_soundcard_channel: gint,
  input_soundcard: GObject*,
  input_soundcard_channel: gint,
  samplerate: guint,
  buffer_size: guint,
  format: AgsSoundcardFormat,
  word_size: guint,
  length: guint,
  first_frame: guint,
  last_frame: guint,
  frame_count: guint,
  loop_start: guint,
  loop_end: guint,
  delay: gdouble,
  attack: guint,
  note_256th_attack: guint,
  damping: AgsComplex,
  vibration: AgsComplex,
  timbre_start: guint,
  timbre_end: guint,
  default_template: GObject*,
  rt_template: GObject*,
  note: GList*,
  recall_id: GObject*,
  stream_mutex: GRecMutex,
  stream: GList*,
  stream_current: GList*,
  stream_end: GList*,
  stream_mode: AgsAudioSignalStreamMode,
  audio_buffer_util: AgsAudioBufferUtil*,
  backlog_mutex: GRecMutex,
  has_backlog: gboolean
}

No description available.

Ancestors

Implements

Constructors

ags_audio_signal_new

Creates a AgsAudioSignal, with defaults of output_soundcard, linking recycling tree and refering to recall_id.

since: 3.0.0

ags_audio_signal_new_with_length

Creates a AgsAudioSignal, with defaults of soundcard, linking recycling tree and refering to recall_id. The audio data is tiled to length frame count.

since: 3.0.0

Functions

ags_audio_signal_find_by_recall_id

Retrieve next audio signal refering to recall_id.

since: 3.0.0

ags_audio_signal_find_stream_current

Retrieve next current stream of AgsAudioSignal list. Warning this function does not lock the stream mutex.

since: 3.0.0

ags_audio_signal_get_default_template

Retrieve the default template audio signal.

since: 5.0.0

ags_audio_signal_get_rt_default_template
No description available.

ags_audio_signal_get_rt_template

Retrieve the realtime template audio signal.

since: 3.0.0

ags_audio_signal_is_active

Check if is active.

since: 3.0.0

Instance methods

ags_audio_signal_add_note

Add note to audio_signal.

since: 3.0.0

ags_audio_signal_add_stream

Adds a buffer at the end of the stream.

since: 3.0.0

ags_audio_signal_clear

Clear audio_signal.

since: 3.4.1

ags_audio_signal_close_feed

Feed audio signal to grow upto frame count.

since: 3.3.0

ags_audio_signal_contains_note

Check if audio_signal contains note.

since: 3.3.0

ags_audio_signal_continue_feed

Feed audio signal to grow upto frame count.

since: 3.3.0

ags_audio_signal_duplicate_stream

Apply default_template audio data to audio_signal. Note should only be invoked by proper recall context because only the stream of default_template is locked.

since: 3.0.0

ags_audio_signal_feed

Feed audio signal to grow upto frame count.

since: 3.0.0

ags_audio_signal_feed_extended

Feed audio signal to grow upto frame count.

since: 3.3.0

ags_audio_signal_get_attack

Get attack of audio_signal.

since: 6.2.0

ags_audio_signal_get_buffer_size

Gets buffer size.

since: 3.1.0

ags_audio_signal_get_format

Gets format.

since: 3.1.0

ags_audio_signal_get_input_soundcard

Get the input soundcard object of audio_signal.

since: 3.1.0

ags_audio_signal_get_length_till_current

Counts the buffers from :stream upto :stream-current.

since: 3.0.0

ags_audio_signal_get_note

Get note.

since: 3.1.0

ags_audio_signal_get_note_256th_attack

Get note 256th attack of audio_signal.

since: 6.2.0

ags_audio_signal_get_obj_mutex

Get object mutex.

since: 3.1.0

ags_audio_signal_get_output_soundcard

Get the output soundcard object of audio_signal.

since: 3.1.0

ags_audio_signal_get_recycling

Get recycling.

since: 3.1.0

ags_audio_signal_get_samplerate

Gets samplerate.

since: 3.1.0

ags_audio_signal_get_stream

Get stream.

since: 3.8.11

ags_audio_signal_open_feed

Feed audio signal to grow upto frame count.

since: 3.3.0

ags_audio_signal_refresh_data
No description available.

ags_audio_signal_remove_note

Remove note from audio_signal.

since: 3.0.0

ags_audio_signal_set_attack

Set attack of audio_signal.

since: 6.2.0

ags_audio_signal_set_buffer_size

Set buffer size.

since: 3.0.0

ags_audio_signal_set_flags

Enable a feature of audio_signal.

since: 3.0.0

ags_audio_signal_set_format

Set format.

since: 3.0.0

ags_audio_signal_set_input_soundcard

Set the input soundcard object of audio_signal.

since: 3.0.0

ags_audio_signal_set_key_format

Set key_format on audio_signal.

since: 6.2.0

ags_audio_signal_set_note

Set note by replacing existing.

since: 3.1.0

ags_audio_signal_set_note_256th_attack

Set note_256th_attack of audio_signal.

since: 6.2.0

ags_audio_signal_set_output_soundcard

Set the output soundcard object of audio_signal.

since: 3.0.0

ags_audio_signal_set_recycling

Set recycling.

since: 3.1.0

ags_audio_signal_set_samplerate

Set samplerate.

since: 3.0.0

ags_audio_signal_set_stream

Set stream by replacing existing.

since: 3.8.11

ags_audio_signal_set_stream_mode

Set stream mode of audio_signal.

since: 6.2.0

ags_audio_signal_stream_lock

Lock stream mutex.

since: 3.1.0

ags_audio_signal_stream_resize

Resize stream of audio_signal to length number of buffers.

since: 3.0.0

ags_audio_signal_stream_safe_resize

Resize stream of audio_signal to length number of buffers. But doesn’t shrink more than the current stream position.

since: 3.0.0

ags_audio_signal_stream_unlock

Unlock stream mutex.

since: 3.1.0

ags_audio_signal_test_flags

Test flags to be set on audio_signal.

since: 3.0.0

ags_audio_signal_test_key_format

Test key_format to be set on audio_signal.

since: 6.2.0

ags_audio_signal_test_stream_mode

Test stream_mode to be set on audio_signal.

since: 6.2.0

ags_audio_signal_unset_flags

Disable a feature of audio_signal.

since: 3.0.0

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Methods inherited from AgsConnectable (13)
ags_connectable_add_to_registry

Add connectable to registry.

ags_connectable_connect

Connect the connectable.

ags_connectable_connect_connection

Disconnect the connectable.

ags_connectable_disconnect

Disconnect the connectable.

ags_connectable_disconnect_connection

Disconnect the connectable.

ags_connectable_get_uuid

Get UUID of connectable.

ags_connectable_has_resource

Check the connectable to have resources.

ags_connectable_is_connected

Check if the connectable was connected.

ags_connectable_is_ready

Connect the connectable.

ags_connectable_list_resource

List resources as an XML element and return it.

ags_connectable_remove_from_registry

Remove connectable from registry.

ags_connectable_xml_compose

Compose an XML element and return it.

ags_connectable_xml_parse

Parse node as XML element and apply it.

Properties

AgsAudio.AudioSignal:attack

The attack to be used.

since: 3.0.0

AgsAudio.AudioSignal:buffer-size

The buffer size to be used.

since: 3.0.0

AgsAudio.AudioSignal:damping

Damping of timbre.

since: 3.0.0

AgsAudio.AudioSignal:default-template

The assigned AgsAudioSignal default template.

since: 5.0.0

AgsAudio.AudioSignal:delay

The delay to be used.

since: 3.0.0

AgsAudio.AudioSignal:first-frame

The first frame of stream.

since: 3.0.0

AgsAudio.AudioSignal:format

The format to be used.

since: 3.0.0

AgsAudio.AudioSignal:frame-count

The initial size of audio data.

since: 3.0.0

AgsAudio.AudioSignal:input-soundcard

The assigned input AgsSoundcard.

since: 3.0.0

AgsAudio.AudioSignal:input-soundcard-channel

The input soundcard channel.

since: 3.0.0

AgsAudio.AudioSignal:last-frame

The last frame of stream.

since: 3.0.0

AgsAudio.AudioSignal:length

The length of the stream.

since: 3.0.0

AgsAudio.AudioSignal:loop-end

The loop end of stream.

since: 3.0.0

AgsAudio.AudioSignal:loop-start

The loop start of stream.

since: 3.0.0

AgsAudio.AudioSignal:note

The assigned AgsNote providing default settings.

since: 3.0.0

AgsAudio.AudioSignal:note-256th-attack

The note 256th attack to be used.

since: 6.2.0

AgsAudio.AudioSignal:output-soundcard

The assigned output AgsSoundcard providing default settings.

since: 3.0.0

AgsAudio.AudioSignal:output-soundcard-channel

The output soundcard channel.

since: 3.0.0

AgsAudio.AudioSignal:recall-id

The assigned AgsRecallID providing context.

since: 3.0.0

AgsAudio.AudioSignal:recycling

The assigned AgsRecycling linking tree.

since: 3.0.0

AgsAudio.AudioSignal:rt-template

The assigned AgsAudioSignal realtime template.

since: 3.0.0

AgsAudio.AudioSignal:samplerate

The samplerate to be used.

since: 3.0.0

AgsAudio.AudioSignal:stream

The stream it contains.

since: 3.0.0

AgsAudio.AudioSignal:stream-current

The current stream.

since: 3.0.0

AgsAudio.AudioSignal:stream-end

The end of stream.

since: 3.0.0

AgsAudio.AudioSignal:timbre-end

The timbre’s end frame.

since: 3.0.0

AgsAudio.AudioSignal:timbre-start

The timbre’s start frame.

since: 3.0.0

AgsAudio.AudioSignal:vibration

Vibration of timbre.

since: 3.0.0

AgsAudio.AudioSignal:word-size

The word size of frame.

since: 3.0.0

Signals

AgsAudio.AudioSignal::add-note

The ::add-note signal notifies about adding note.

since: 3.0.0

AgsAudio.AudioSignal::refresh-data

The ::refresh-data signal notifies about requesting to refresh data.

since: 3.0.0

AgsAudio.AudioSignal::remove-note

The ::remove-note signal notifies about removing note.

since: 3.0.0

Signals inherited from GObject (1)
GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

Class structure

struct AgsAudioAudioSignalClass {
  GObjectClass gobject;
  void (* add_note) (
    AgsAudioSignal* audio_signal,
    GObject* note
  );
  void (* remove_note) (
    AgsAudioSignal* audio_signal,
    GObject* note
  );
  void (* refresh_data) (
    AgsAudioSignal* audio_signal
  );
  
}

No description available.

Class members
gobject: GObjectClass

No description available.

add_note: void (* add_note) ( AgsAudioSignal* audio_signal, GObject* note )

No description available.

remove_note: void (* remove_note) ( AgsAudioSignal* audio_signal, GObject* note )

No description available.

refresh_data: void (* refresh_data) ( AgsAudioSignal* audio_signal )

No description available.

Virtual methods

AgsAudio.AudioSignalClass.add_note

Add note to audio_signal.

since: 3.0.0

AgsAudio.AudioSignalClass.refresh_data
No description available.

AgsAudio.AudioSignalClass.remove_note

Remove note from audio_signal.

since: 3.0.0