2019-02-15 02:38:09 -08:00
|
|
|
class @beta Ecore.Audio.In extends Ecore.Audio
|
2014-03-26 08:01:08 -07:00
|
|
|
{
|
2016-04-18 02:46:06 -07:00
|
|
|
[[Ecore Audio input object.]]
|
2019-05-09 07:16:42 -07:00
|
|
|
c_prefix: ecore_audio_obj_in;
|
2019-09-26 07:39:56 -07:00
|
|
|
event_c_prefix: ecore_audio_in;
|
2014-03-26 08:01:08 -07:00
|
|
|
data: Ecore_Audio_Input;
|
2015-05-07 08:36:45 -07:00
|
|
|
methods {
|
|
|
|
@property speed {
|
2016-04-18 02:46:06 -07:00
|
|
|
[[Playback speed of the input.
|
|
|
|
]]
|
|
|
|
set {
|
2014-03-26 08:01:08 -07:00
|
|
|
}
|
|
|
|
get {
|
|
|
|
}
|
|
|
|
values {
|
2015-06-18 07:55:17 -07:00
|
|
|
speed: double; [[The speed, 1.0 is the default]]
|
2014-03-26 08:01:08 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 08:36:45 -07:00
|
|
|
@property samplerate {
|
2016-04-18 02:46:06 -07:00
|
|
|
[[Sample-rate of the input
|
|
|
|
]]
|
|
|
|
set {
|
2014-03-26 08:01:08 -07:00
|
|
|
}
|
|
|
|
get {
|
|
|
|
}
|
|
|
|
values {
|
2015-06-18 07:55:17 -07:00
|
|
|
samplerate: int; [[The samplerate in Hz]]
|
2014-03-26 08:01:08 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 08:36:45 -07:00
|
|
|
@property channels {
|
2016-04-18 02:46:06 -07:00
|
|
|
[[Amount of channels the input has
|
|
|
|
]]
|
|
|
|
set {
|
2014-03-26 08:01:08 -07:00
|
|
|
}
|
|
|
|
get {
|
|
|
|
}
|
|
|
|
values {
|
2015-06-18 07:55:17 -07:00
|
|
|
channels: int; [[The number of channels]]
|
2014-03-26 08:01:08 -07:00
|
|
|
}
|
|
|
|
}
|
2019-01-17 08:14:19 -08:00
|
|
|
@property preloaded {
|
2016-04-18 02:46:06 -07:00
|
|
|
[[Preloaded state of the input
|
|
|
|
]]
|
|
|
|
set {
|
2014-03-26 08:01:08 -07:00
|
|
|
}
|
|
|
|
get {
|
|
|
|
}
|
|
|
|
values {
|
docs: Fix typos and some wrong expressions in Ecore, Ecore_Audio, Ecore_Cocoa, Ecore_Con, and Ector API reference doxygen.
Summary: I had fixed some typos and wrong expressions, such as capital letters, $simbols in .eo and singulars in Ecore, Ecore_Audio, Ecore_Cocoa, Ecore_Con, and Ector API reference doxygen.
Test Plan: Doxygen Revision
Reviewers: Jaehyun_Cho, stefan, jpeg, cedric, raster
Reviewed By: Jaehyun_Cho
Differential Revision: https://phab.enlightenment.org/D4943
2017-06-06 21:01:13 -07:00
|
|
|
preloaded: bool; [[$true if the input should be cached, $false otherwise]]
|
2014-03-26 08:01:08 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 08:36:45 -07:00
|
|
|
@property looped {
|
2016-04-18 02:46:06 -07:00
|
|
|
[[Looped state of the input
|
2014-03-26 08:01:08 -07:00
|
|
|
|
2016-04-18 02:46:06 -07:00
|
|
|
If the input is looped and reaches the end it will start from the
|
|
|
|
beginning again. At the same time the event
|
|
|
|
\@ref ECORE_AUDIO_EV_IN_LOOPED will be emitted
|
|
|
|
]]
|
|
|
|
set {
|
2014-03-26 08:01:08 -07:00
|
|
|
}
|
|
|
|
get {
|
|
|
|
}
|
|
|
|
values {
|
2016-11-11 00:26:22 -08:00
|
|
|
looped: bool; [[$true if the input should be looped, $false otherwise]]
|
2014-03-26 08:01:08 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 08:36:45 -07:00
|
|
|
@property length {
|
2016-04-18 02:46:06 -07:00
|
|
|
[[Length of the input
|
2014-03-26 08:01:08 -07:00
|
|
|
|
2016-04-18 02:46:06 -07:00
|
|
|
This function is only implemented by some classes
|
|
|
|
(i.e. ECORE_AUDIO_OBJ_IN_TONE_CLASS)
|
|
|
|
]]
|
2019-01-17 08:14:19 -08:00
|
|
|
set {
|
2014-03-26 08:01:08 -07:00
|
|
|
}
|
|
|
|
get {
|
|
|
|
}
|
|
|
|
values {
|
2015-06-18 07:55:17 -07:00
|
|
|
length: double; [[The length of the input in seconds]]
|
2014-03-26 08:01:08 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 08:36:45 -07:00
|
|
|
@property output {
|
2019-09-13 03:25:49 -07:00
|
|
|
[[The output that this input is attached to
|
|
|
|
]]
|
2014-03-26 08:01:08 -07:00
|
|
|
get {
|
|
|
|
}
|
|
|
|
values {
|
2016-05-23 07:41:28 -07:00
|
|
|
output: Ecore.Audio; [[The output]] /* FIXME-cyclic Should be Ecore.Audio.Out */
|
2014-03-26 08:01:08 -07:00
|
|
|
}
|
|
|
|
}
|
2015-05-07 08:36:45 -07:00
|
|
|
@property remaining {
|
2019-09-13 03:25:49 -07:00
|
|
|
[[The remaining time of the input
|
|
|
|
]]
|
2014-03-26 08:01:08 -07:00
|
|
|
get {
|
|
|
|
}
|
|
|
|
values {
|
2015-06-18 07:55:17 -07:00
|
|
|
remaining: double; [[The amount of time in seconds left to play]]
|
2014-03-26 08:01:08 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
read {
|
2017-02-27 02:48:38 -08:00
|
|
|
[[Reads from the input
|
2015-06-18 07:55:17 -07:00
|
|
|
]]
|
|
|
|
return: ssize; [[The amount of samples written to buf]]
|
2014-03-26 08:01:08 -07:00
|
|
|
params {
|
2016-06-02 04:54:59 -07:00
|
|
|
@in buf: void_ptr; [[The buffer to read into]]
|
2015-06-18 07:55:17 -07:00
|
|
|
@in len: size; [[The amount of samples to read]]
|
2014-03-26 08:01:08 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
read_internal {
|
2015-06-18 07:55:17 -07:00
|
|
|
[[Internal read function
|
|
|
|
]]
|
|
|
|
return: ssize; [[The amount of samples written to buf]]
|
2014-03-26 08:01:08 -07:00
|
|
|
params {
|
2016-06-02 04:54:59 -07:00
|
|
|
@in buf: void_ptr; [[The buffer to read into]]
|
2015-06-18 07:55:17 -07:00
|
|
|
@in len: size; [[The amount of samples to read]]
|
2014-03-26 08:01:08 -07:00
|
|
|
}
|
|
|
|
}
|
2019-01-17 08:14:19 -08:00
|
|
|
seek {
|
2017-02-27 02:48:38 -08:00
|
|
|
[[Seeks within the input
|
2015-06-18 07:55:17 -07:00
|
|
|
]]
|
|
|
|
return: double; [[The current absolute position in seconds within
|
|
|
|
the input]]
|
2014-03-26 08:01:08 -07:00
|
|
|
params {
|
2015-06-18 07:55:17 -07:00
|
|
|
@in offs: double; [[The offset in seconds]]
|
|
|
|
@in mode: int; [[The seek mode. Is absolute with SEEK_SET,
|
|
|
|
relative to the current position with SEEK_CUR
|
|
|
|
and relative to the end with SEEK_END.]]
|
2014-03-26 08:01:08 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
implements {
|
2016-08-10 07:23:04 -07:00
|
|
|
Efl.Object.constructor;
|
|
|
|
Efl.Object.destructor;
|
2016-05-06 05:24:16 -07:00
|
|
|
Ecore.Audio.vio_set;
|
2019-01-17 08:14:19 -08:00
|
|
|
@empty .length {set;}
|
|
|
|
@empty .preloaded {set; get;}
|
|
|
|
@empty .seek;
|
2019-01-21 06:43:20 -08:00
|
|
|
@empty Ecore.Audio.source {set; get;}
|
|
|
|
@empty Ecore.Audio.format {set; get;}
|
2014-03-26 08:01:08 -07:00
|
|
|
}
|
|
|
|
events {
|
efl: Add missing event types
Summary:
All events must have a type now, otherwise bindings don't know how to handle
the event_info field.
Most of the missing event types were actually "void" (no event_info present).
Some struct definitions had to be moved to eo instead of h files, so they
are available to bindings. Some have not, and are marked with FIXME.
Some namespaces have been fixed (like Efl_Event_Cb -> Efl.Event_Cb).
In general, there are hundreds of changed files, but mostly to add a type which
was not present before, so there's no harm done.
Also, A lot of FIXMEs have been added which should be, like, fixed.
For example, some events can send different types of event_info, which is
very inconvenient (and error prone).
Test Plan: make with c# bindings works, make check and make examples work too.
Reviewers: cedric, q66, lauromoura
Subscribers: zmike
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D6169
2018-05-11 08:20:40 -07:00
|
|
|
in,looped: void; [[Called when an input has looped.]]
|
|
|
|
in,stopped: void; [[Called when an input has stopped playing.]]
|
|
|
|
in,samplerate,changed: void; [[Called when the input samplerate has changed.]]
|
2014-03-26 08:01:08 -07:00
|
|
|
}
|
|
|
|
}
|