Top |
Functions
|
ags_sound_container_open () |
|
ags_sound_container_get_level_count () |
|
ags_sound_container_get_nesting_level () |
|
ags_sound_container_get_level_id () |
|
ags_sound_container_get_level_index () |
|
ags_sound_container_get_sublevel_name () |
|
ags_sound_container_level_up () |
|
ags_sound_container_select_level_by_id () |
|
ags_sound_container_select_level_by_index () |
|
ags_sound_container_get_resource_all () |
|
ags_sound_container_get_resource_by_name () |
|
ags_sound_container_get_resource_by_index () |
|
ags_sound_container_get_resource_current () |
|
ags_sound_container_close () |
#define | AGS_IS_SOUND_CONTAINER() |
#define | AGS_IS_SOUND_CONTAINER_INTERFACE() |
#define | AGS_SOUND_CONTAINER() |
#define | AGS_SOUND_CONTAINER_GET_INTERFACE() |
#define | AGS_SOUND_CONTAINER_INTERFACE() |
|
ags_sound_container_get_type () |
Types and Values
#define | AGS_TYPE_SOUND_CONTAINER |
AgsSoundContainer | |
struct | AgsSoundContainerInterface |
Description
The AgsSoundContainer interface gives you a unique access to file related IO operations.
Functions
ags_sound_container_open ()
gboolean ags_sound_container_open (AgsSoundContainer *sound_container
,);
gchar *filename
Open sound_container
.
Since:
ags_sound_container_get_level_count ()
guint ags_sound_container_get_level_count (AgsSoundContainer *sound_container
);
Get level count.
Since:
ags_sound_container_get_nesting_level ()
guint ags_sound_container_get_nesting_level (AgsSoundContainer *sound_container
);
Get nesting level.
Since:
ags_sound_container_get_level_id ()
gchar * ags_sound_container_get_level_id (AgsSoundContainer *sound_container
);
Get level id.
Since:
ags_sound_container_get_level_index ()
guint ags_sound_container_get_level_index (AgsSoundContainer *sound_container
);
Get level index.
Since:
ags_sound_container_get_sublevel_name ()
gchar ** ags_sound_container_get_sublevel_name (AgsSoundContainer *sound_container
);
Get sublevel names.
Returns
the string vector containing sublevel names.
[element-type utf8][array zero-terminated=1][transfer full]
Since:
ags_sound_container_level_up ()
guint ags_sound_container_level_up (AgsSoundContainer *sound_container
,);
guint level_count
Level up.
Since:
ags_sound_container_select_level_by_id ()
guint ags_sound_container_select_level_by_id (AgsSoundContainer *sound_container
,);
gchar *level_id
Select level by id.
Since:
ags_sound_container_select_level_by_index ()
guint ags_sound_container_select_level_by_index (AgsSoundContainer *sound_container
,);
guint level_index
Select level by index.
Since:
ags_sound_container_get_resource_all ()
GList * ags_sound_container_get_resource_all (AgsSoundContainer *sound_container
);
Get all resources as a
Since:
ags_sound_container_get_resource_by_name ()
GList * ags_sound_container_get_resource_by_name (AgsSoundContainer *sound_container
,);
gchar *resource_name
Get resources by name as a
Since:
ags_sound_container_get_resource_by_index ()
GList * ags_sound_container_get_resource_by_index (AgsSoundContainer *sound_container
,);
guint resource_index
Get resources by index as a
Since:
ags_sound_container_get_resource_current ()
GList * ags_sound_container_get_resource_current (AgsSoundContainer *sound_container
);
Get resources by index as a
Since:
ags_sound_container_close ()
void ags_sound_container_close (AgsSoundContainer *sound_container
);
Close sound_container
.
Since:
AGS_IS_SOUND_CONTAINER()
#define AGS_IS_SOUND_CONTAINER(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_SOUND_CONTAINER))
AGS_IS_SOUND_CONTAINER_INTERFACE()
#define AGS_IS_SOUND_CONTAINER_INTERFACE(vtable) (G_TYPE_CHECK_CLASS_TYPE((vtable), AGS_TYPE_SOUND_CONTAINER))
AGS_SOUND_CONTAINER()
#define AGS_SOUND_CONTAINER(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SOUND_CONTAINER, AgsSoundContainer))
AGS_SOUND_CONTAINER_GET_INTERFACE()
#define AGS_SOUND_CONTAINER_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE((obj), AGS_TYPE_SOUND_CONTAINER, AgsSoundContainerInterface))
AGS_SOUND_CONTAINER_INTERFACE()
#define AGS_SOUND_CONTAINER_INTERFACE(vtable) (G_TYPE_CHECK_CLASS_CAST((vtable), AGS_TYPE_SOUND_CONTAINER, AgsSoundContainerInterface))
Types and Values
struct AgsSoundContainerInterface
struct AgsSoundContainerInterface { GTypeInterface ginterface; gboolean (*open)(AgsSoundContainer *sound_container, gchar *filename); /* level information */ guint (*get_level_count)(AgsSoundContainer *sound_container); guint (*get_nesting_level)(AgsSoundContainer *sound_container); gchar* (*get_level_id)(AgsSoundContainer *sound_container); guint (*get_level_index)(AgsSoundContainer *sound_container); gchar** (*get_sublevel_name)(AgsSoundContainer *sound_container); /* levels */ guint (*level_up)(AgsSoundContainer *sound_container, guint level_count); guint (*select_level_by_id)(AgsSoundContainer *sound_container, gchar *level_id); guint (*select_level_by_index)(AgsSoundContainer *sound_container, guint level_index); /* get sound resource */ GList* (*get_resource_all)(AgsSoundContainer *sound_container); GList* (*get_resource_by_name)(AgsSoundContainer *sound_container, gchar *resource_name); GList* (*get_resource_by_index)(AgsSoundContainer *sound_container, guint resource_index); GList* (*get_resource_current)(AgsSoundContainer *sound_container); /* close */ void (*close)(AgsSoundContainer *sound_container); };