2014-06-20 03:14:59 -07:00
|
|
|
class Ecore_Audio (Eo.Base)
|
2014-03-26 01:17:38 -07:00
|
|
|
{
|
2014-04-03 00:24:44 -07:00
|
|
|
legacy_prefix: null;
|
2014-03-26 01:17:38 -07:00
|
|
|
eo_prefix: ecore_audio_obj;
|
|
|
|
data: Ecore_Audio_Object;
|
2015-05-07 08:36:45 -07:00
|
|
|
methods {
|
|
|
|
@property name {
|
2014-03-26 01:17:38 -07:00
|
|
|
set {
|
|
|
|
/*@
|
|
|
|
Set the name of the object
|
|
|
|
|
|
|
|
@since 1.8 */
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
/*@
|
|
|
|
Get the name of the object
|
|
|
|
|
|
|
|
@since 1.8 */
|
|
|
|
}
|
|
|
|
values {
|
2014-06-26 02:52:17 -07:00
|
|
|
const(char)* name;
|
2014-03-26 01:17:38 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 08:36:45 -07:00
|
|
|
@property paused {
|
2014-03-26 01:17:38 -07:00
|
|
|
set {
|
|
|
|
/*@
|
|
|
|
Set the pause state of the object
|
|
|
|
|
|
|
|
@since 1.8 */
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
/*@
|
|
|
|
Get the pause state of the object
|
|
|
|
|
|
|
|
@since 1.8 */
|
|
|
|
}
|
|
|
|
values {
|
2015-05-11 07:37:19 -07:00
|
|
|
bool paused; /*@ ret EINA_TRUE if object is paused, EINA_FALSE if not*/
|
2014-03-26 01:17:38 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 08:36:45 -07:00
|
|
|
@property volume {
|
2014-03-26 01:17:38 -07:00
|
|
|
set {
|
|
|
|
/*@
|
|
|
|
Set the volume of the object
|
|
|
|
|
|
|
|
@since 1.8 */
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
/*@
|
|
|
|
Get the volume of the object
|
|
|
|
|
|
|
|
@since 1.8 */
|
|
|
|
}
|
|
|
|
values {
|
2015-05-11 07:37:19 -07:00
|
|
|
double volume; /*@ The volume */
|
2014-03-26 01:17:38 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 08:36:45 -07:00
|
|
|
@property source {
|
2014-03-26 01:17:38 -07:00
|
|
|
set {
|
|
|
|
/*@
|
|
|
|
Set the source of the object
|
|
|
|
|
|
|
|
What sources are supported depends on the actual object. For example,
|
|
|
|
the libsndfile class accepts WAV, OGG, FLAC files as source.
|
|
|
|
|
|
|
|
@since 1.8 */
|
2015-05-11 07:37:19 -07:00
|
|
|
return: bool; /*@ EINA_TRUE if the source was set correctly (i.e. the file was opened), EINA_FALSE otherwise*/
|
2014-03-26 01:17:38 -07:00
|
|
|
}
|
|
|
|
get {
|
|
|
|
/*@
|
|
|
|
Get the source of the object
|
|
|
|
|
|
|
|
@since 1.8 */
|
|
|
|
}
|
|
|
|
values {
|
2015-05-11 07:37:19 -07:00
|
|
|
const(char)* source; /*@ The source to set to (i.e. file, URL, device)*/
|
2014-03-26 01:17:38 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 08:36:45 -07:00
|
|
|
@property format {
|
2014-03-26 01:17:38 -07:00
|
|
|
set {
|
|
|
|
/*@
|
|
|
|
Set the format of the object
|
|
|
|
|
|
|
|
What formats are supported depends on the actual object. Default is
|
|
|
|
ECORE_AUDIO_FORMAT_AUTO
|
|
|
|
|
|
|
|
@since 1.8 */
|
2015-05-11 07:37:19 -07:00
|
|
|
return: bool; /*@ EINA_TRUE if the format was supported, EINA_FALSE otherwise*/
|
2014-03-26 01:17:38 -07:00
|
|
|
}
|
|
|
|
get {
|
|
|
|
/*@
|
|
|
|
Get the format of the object
|
|
|
|
|
|
|
|
After setting the source if the format was ECORE_AUDIO_FORMAT_AUTO this
|
|
|
|
function will now return the actual format.
|
|
|
|
|
|
|
|
@since 1.8 */
|
|
|
|
}
|
|
|
|
values {
|
2015-05-11 07:37:19 -07:00
|
|
|
Ecore_Audio_Format format; /*@ The format of the object*/
|
2014-03-26 01:17:38 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
vio_set {
|
|
|
|
/*@
|
|
|
|
Set the virtual IO functions
|
|
|
|
|
|
|
|
@since 1.8 */
|
|
|
|
params {
|
2015-05-11 07:37:19 -07:00
|
|
|
Ecore_Audio_Vio *vio; /*@ The @ref Ecore_Audio_Vio struct with the function callbacks*/
|
|
|
|
void *data; /*@ User data to pass to the VIO functions*/
|
|
|
|
eo_key_data_free_func free_func; /*@ This function takes care to clean up @ref data when he VIO is destroyed. NULL means do nothing.*/
|
2014-03-26 01:17:38 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
implements {
|
2014-06-20 03:14:59 -07:00
|
|
|
Eo.Base.constructor;
|
2014-08-29 03:40:29 -07:00
|
|
|
@virtual .source.get;
|
|
|
|
@virtual .source.set;
|
|
|
|
@virtual .format.get;
|
|
|
|
@virtual .format.set;
|
|
|
|
@virtual .vio_set;
|
2014-03-26 01:17:38 -07:00
|
|
|
}
|
2014-04-03 00:24:44 -07:00
|
|
|
}
|