Top | ![]() |
![]() |
![]() |
![]() |
#define | AGS_TYPE_SOUND_CONTAINER |
AgsSoundContainer | |
struct | AgsSoundContainerInterface |
The AgsSoundContainer interface gives you a unique access to file related IO operations.
gboolean ags_sound_container_open (AgsSoundContainer *sound_container
,gchar *filename
);
Open sound_container
.
Since: 2.0.0
guint
ags_sound_container_get_level_count (AgsSoundContainer *sound_container
);
Get level count.
Since: 2.0.0
guint
ags_sound_container_get_nesting_level (AgsSoundContainer *sound_container
);
Get nesting level.
Since: 2.0.0
gchar *
ags_sound_container_get_level_id (AgsSoundContainer *sound_container
);
Get level id.
Since: 2.0.0
guint
ags_sound_container_get_level_index (AgsSoundContainer *sound_container
);
Get level index.
Since: 2.0.0
gchar **
ags_sound_container_get_sublevel_name (AgsSoundContainer *sound_container
);
Get sublevel names.
Since: 2.0.0
guint ags_sound_container_level_up (AgsSoundContainer *sound_container
,guint level_count
);
Level up.
Since: 2.0.0
guint ags_sound_container_select_level_by_id (AgsSoundContainer *sound_container
,gchar *level_id
);
Select level by id.
Since: 2.0.0
guint ags_sound_container_select_level_by_index (AgsSoundContainer *sound_container
,guint level_index
);
Select level by index.
Since: 2.0.0
GList *
ags_sound_container_get_resource_all (AgsSoundContainer *sound_container
);
Get all resources as a GList.
Since: 2.0.0
GList * ags_sound_container_get_resource_by_name (AgsSoundContainer *sound_container
,gchar *resource_name
);
Get resources by name as a GList.
Since: 2.0.0
GList * ags_sound_container_get_resource_by_index (AgsSoundContainer *sound_container
,guint resource_index
);
Get resources by index as a GList.
Since: 2.0.0
GList *
ags_sound_container_get_resource_current
(AgsSoundContainer *sound_container
);
Get resources by index as a GList.
Since: 2.0.0
void
ags_sound_container_close (AgsSoundContainer *sound_container
);
Close sound_container
.
Since: 2.0.0
#define AGS_IS_SOUND_CONTAINER(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_SOUND_CONTAINER))
#define AGS_IS_SOUND_CONTAINER_INTERFACE(vtable) (G_TYPE_CHECK_CLASS_TYPE((vtable), AGS_TYPE_SOUND_CONTAINER))
#define AGS_SOUND_CONTAINER(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SOUND_CONTAINER, AgsSoundContainer))
#define AGS_SOUND_CONTAINER_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE((obj), AGS_TYPE_SOUND_CONTAINER, AgsSoundContainerInterface))
#define AGS_SOUND_CONTAINER_INTERFACE(vtable) (G_TYPE_CHECK_CLASS_CAST((vtable), AGS_TYPE_SOUND_CONTAINER, 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_resource); };