2016-05-06 05:24:16 -07:00
|
|
|
class Ecore.Audio.In (Ecore.Audio)
|
2014-03-26 08:01:08 -07:00
|
|
|
{
|
2016-04-18 02:46:06 -07:00
|
|
|
[[Ecore Audio input object.]]
|
2014-03-26 08:01:08 -07:00
|
|
|
eo_prefix: ecore_audio_obj_in;
|
2016-05-17 09:14:47 -07:00
|
|
|
event_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.
|
2014-03-26 08:01:08 -07:00
|
|
|
|
2016-04-18 02:46:06 -07:00
|
|
|
@since 1.8
|
|
|
|
]]
|
|
|
|
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
|
2014-03-26 08:01:08 -07:00
|
|
|
|
2016-04-18 02:46:06 -07:00
|
|
|
@since 1.8
|
|
|
|
]]
|
|
|
|
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
|
2014-03-26 08:01:08 -07:00
|
|
|
|
2016-04-18 02:46:06 -07:00
|
|
|
@since 1.8
|
|
|
|
]]
|
|
|
|
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
|
|
|
}
|
|
|
|
}
|
2016-05-12 07:41:56 -07:00
|
|
|
@property preloaded @virtual_pure {
|
2016-04-18 02:46:06 -07:00
|
|
|
[[Preloaded state of the input
|
2014-03-26 08:01:08 -07:00
|
|
|
|
2016-04-18 02:46:06 -07:00
|
|
|
@since 1.8
|
|
|
|
]]
|
|
|
|
set {
|
2014-03-26 08:01:08 -07:00
|
|
|
}
|
|
|
|
get {
|
|
|
|
}
|
|
|
|
values {
|
2016-11-11 00:26:22 -08: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
|
2014-03-26 08:01:08 -07:00
|
|
|
|
2016-04-18 02:46:06 -07:00
|
|
|
@since 1.8
|
|
|
|
]]
|
|
|
|
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)
|
2014-03-26 08:01:08 -07:00
|
|
|
|
2016-04-18 02:46:06 -07:00
|
|
|
@since 1.8
|
|
|
|
]]
|
2016-05-12 07:41:56 -07:00
|
|
|
set @virtual_pure {
|
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 {
|
2014-03-26 08:01:08 -07:00
|
|
|
get {
|
2015-06-18 07:55:17 -07:00
|
|
|
[[Get the output that this input is attached to
|
2014-03-26 08:01:08 -07:00
|
|
|
|
2015-06-18 07:55:17 -07:00
|
|
|
@since 1.8
|
|
|
|
]]
|
2014-03-26 08:01:08 -07:00
|
|
|
}
|
|
|
|
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 {
|
2014-03-26 08:01:08 -07:00
|
|
|
get {
|
2015-06-18 07:55:17 -07:00
|
|
|
[[Get the remaining time of the input
|
2014-03-26 08:01:08 -07:00
|
|
|
|
2015-06-18 07:55:17 -07:00
|
|
|
@since 1.8
|
|
|
|
]]
|
2014-03-26 08:01:08 -07:00
|
|
|
}
|
|
|
|
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 {
|
2015-06-18 07:55:17 -07:00
|
|
|
[[Read from the input
|
2014-03-26 08:01:08 -07:00
|
|
|
|
2015-06-18 07:55:17 -07:00
|
|
|
@since 1.8
|
|
|
|
]]
|
|
|
|
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
|
2014-03-26 08:01:08 -07:00
|
|
|
|
2015-06-18 07:55:17 -07:00
|
|
|
@since 1.8
|
|
|
|
]]
|
|
|
|
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
|
|
|
}
|
|
|
|
}
|
2016-05-12 07:41:56 -07:00
|
|
|
seek @virtual_pure {
|
2015-06-18 07:55:17 -07:00
|
|
|
[[Seek within the input
|
2014-03-26 08:01:08 -07:00
|
|
|
|
2015-06-18 07:55:17 -07:00
|
|
|
@since 1.8
|
|
|
|
]]
|
|
|
|
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;
|
2014-03-26 08:01:08 -07:00
|
|
|
}
|
|
|
|
events {
|
2015-06-11 09:09:02 -07:00
|
|
|
in,looped; [[Called when an input has looped.]]
|
|
|
|
in,stopped; [[Called when an input has stopped playing.]]
|
|
|
|
in,samplerate,changed; [[Called when the input samplerate has changed.]]
|
2014-03-26 08:01:08 -07:00
|
|
|
}
|
|
|
|
}
|