Top | ![]() |
![]() |
![]() |
![]() |
Functions
|
ags_pad_samplerate_changed () |
|
ags_pad_buffer_size_changed () |
|
ags_pad_format_changed () |
|
ags_pad_set_channel () |
|
ags_pad_get_line () |
|
ags_pad_add_line () |
|
ags_pad_remove_line () |
|
ags_pad_resize_lines () |
|
ags_pad_map_recall () |
|
ags_pad_find_port () |
|
ags_pad_play () |
AgsPad * | ags_pad_new () |
#define | AGS_IS_PAD() |
#define | AGS_IS_PAD_CLASS() |
#define | AGS_PAD() |
#define | AGS_PAD_CLASS() |
#define | AGS_PAD_GET_CLASS() |
|
ags_pad_get_type () |
Properties
buffer-size | Read / Write | |
|
channel | Read / Write |
format | Read / Write | |
samplerate | Read / Write |
Signals
buffer-size-changed | ||
find-port | ||
format-changed | ||
map-recall | ||
refresh-port | ||
resize-lines | ||
samplerate-changed | ||
set-channel |
Types and Values
#define | AGS_PAD_DEFAULT_VERSION |
#define | AGS_PAD_DEFAULT_BUILD_ID |
enum | AgsPadFlags |
#define | AGS_TYPE_PAD |
struct | AgsPad |
struct | AgsPadClass |
Object Hierarchy
GObject ╰──GInitiallyUnowned ╰──GtkWidget ╰──GtkBox ╰── AgsPad ├── AgsDrumInputPad ├── AgsDrumOutputPad ├── AgsFMSynthInputPad ├── AgsMixerInputPad ├── AgsPanelInputPad ╰── AgsSynthInputPad
Implemented Interfaces
AgsPad implements
Description
AgsPad is a composite widget to visualize a bunch of
Functions
ags_pad_samplerate_changed ()
void ags_pad_samplerate_changed (AgsPad *pad
,,
guint samplerate);
guint old_samplerate
Notify about samplerate changed.
Since:
ags_pad_buffer_size_changed ()
void ags_pad_buffer_size_changed (AgsPad *pad
,,
guint buffer_size);
guint old_buffer_size
Notify about buffer_size changed.
Since:
ags_pad_format_changed ()
void ags_pad_format_changed (AgsPad *pad
,,
guint format);
guint old_format
Notify about format changed.
Since:
ags_pad_set_channel ()
void ags_pad_set_channel (AgsPad *pad
,);
AgsChannel *channel
Is emitted as channel gets modified.
Since:
ags_pad_add_line ()
void ags_pad_add_line (AgsPad *pad
,AgsLine *line
,,
guint x,
guint y,
guint width);
guint height
Add line
to pad
.
Since:
ags_pad_remove_line ()
void ags_pad_remove_line (AgsPad *pad
,AgsLine *line
);
Remove line
from pad
.
Since:
ags_pad_resize_lines ()
void ags_pad_resize_lines (AgsPad *pad
,,
GType line_type,
guint audio_channels);
guint audio_channels_old
Resize the count of AgsLine packe by AgsPad.
Parameters
pad |
the AgsPad to resize |
|
line_type |
channel type, either |
|
audio_channels |
count of lines |
|
audio_channels_old |
old count of lines |
Since:
ags_pad_map_recall ()
void ags_pad_map_recall (AgsPad *pad
,);
guint output_pad_start
Start of output pad
Since:
ags_pad_find_port ()
GList * ags_pad_find_port (AgsPad *pad
);
Lookup ports of assigned recalls.
Since:
AGS_PAD_CLASS()
#define AGS_PAD_CLASS(class) (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_PAD, AgsPadClass))
AGS_PAD_GET_CLASS()
#define AGS_PAD_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_PAD, AgsPadClass))
Types and Values
struct AgsPadClass
struct AgsPadClass { GtkBoxClass box; void (*samplerate_changed)(AgsPad *pad, guint samplerate, guint old_samplerate); void (*buffer_size_changed)(AgsPad *pad, guint buffer_size, guint old_buffer_size); void (*format_changed)(AgsPad *pad, guint format, guint old_format); void (*set_channel)(AgsPad *pad, AgsChannel *channel); void (*resize_lines)(AgsPad *pad, GType line_type, guint audio_channels, guint audio_channels_old); void (*map_recall)(AgsPad *pad, guint output_pad_start); GList* (*find_port)(AgsPad *pad); void (*refresh_port)(AgsPad *pad); };
Property Details
The “buffer-size”
property
“buffer-size”guint
The buffer length.
Owner: AgsPad
Flags: Read / Write
Default value: 1024
Since:
The “channel”
property
“channel”AgsChannel *
The start of a bunch of
Owner: AgsPad
Flags: Read / Write
Since:
The “format”
property
“format”guint
The format.
Owner: AgsPad
Flags: Read / Write
Default value: 16
Since:
Signal Details
The “buffer-size-changed”
signal
void user_function (AgsPad *pad,guint buffer_size,guint old_buffer_size,gpointer user_data)
The ::buffer-size-changed signal notifies about changed buffer size.
Parameters
pad |
the AgsPad |
|
buffer_size |
the buffer size |
|
old_buffer_size |
the old buffer size |
|
user_data |
user data set when the signal handler was connected. |
Flags:
Since:
The “find-port”
signal
gpointer user_function (AgsPad *pad,gpointer user_data)
The ::find-port retrieves all associated ports
Flags:
Since:
The “format-changed”
signal
void user_function (AgsPad *pad,guint format,guint old_format,gpointer user_data)
The ::format-changed signal notifies about changed format.
Parameters
pad |
the AgsPad |
|
format |
the format |
|
old_format |
the old format |
|
user_data |
user data set when the signal handler was connected. |
Flags:
Since:
The “map-recall”
signal
void user_function (AgsPad *pad,guint output_pad_start,gpointer user_data)
The ::map-recall as recall should be mapped
Parameters
pad |
the AgsPad to resize |
|
output_pad_start |
start of output pad |
|
user_data |
user data set when the signal handler was connected. |
Flags:
Since:
The “refresh-port”
signal
void user_function (AgsPad *pad,gpointer user_data)
The ::refresh-port signal.
Flags:
Since:
The “resize-lines”
signal
void user_function (AgsPad *pad,gpointer line_type,guint audio_channels,guint audio_channels_old,gpointer user_data)
The ::resize-lines is emitted as count of lines pack is modified.
Parameters
pad |
the AgsPad to resize |
|
line_type |
the channel type |
|
audio_channels |
count of lines |
|
audio_channels_old |
old count of lines |
|
user_data |
user data set when the signal handler was connected. |
Flags:
Since:
The “samplerate-changed”
signal
void user_function (AgsPad *pad,guint samplerate,guint old_samplerate,gpointer user_data)
The ::samplerate-changed signal notifies about changed samplerate.
Parameters
pad |
the AgsPad |
|
samplerate |
the samplerate |
|
old_samplerate |
the old samplerate |
|
user_data |
user data set when the signal handler was connected. |
Flags:
Since:
The “set-channel”
signal
void user_function (AgsPad *pad,GObject *channel,gpointer user_data)
The ::set-channel signal notifies about changed channel.
Parameters
pad |
the AgsPad to modify |
|
channel |
the |
|
user_data |
user data set when the signal handler was connected. |
Flags:
Since: