efl/src/lib/ecore_audio/ecore_audio_in.eo

163 lines
3.9 KiB
Plaintext
Raw Normal View History

class Ecore.Audio.In (Ecore.Audio)
2014-03-26 08:01:08 -07:00
{
[[Ecore Audio input object.]]
2014-03-26 08:01:08 -07:00
eo_prefix: ecore_audio_obj_in;
event_prefix: ecore_audio_in;
2014-03-26 08:01:08 -07:00
data: Ecore_Audio_Input;
methods {
@property speed {
[[Playback speed of the input.
2014-03-26 08:01:08 -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
}
}
@property samplerate {
[[Sample-rate of the input
2014-03-26 08:01:08 -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
}
}
@property channels {
[[Amount of channels the input has
2014-03-26 08:01:08 -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
}
}
@property preloaded @virtual_pure {
[[Preloaded state of the input
2014-03-26 08:01:08 -07:00
@since 1.8
]]
set {
2014-03-26 08:01:08 -07:00
}
get {
}
values {
2015-06-18 07:55:17 -07:00
preloaded: bool; [[true if the input should be cached, false otherwise]]
2014-03-26 08:01:08 -07:00
}
}
@property looped {
[[Looped state of the input
2014-03-26 08:01:08 -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
@since 1.8
]]
set {
2014-03-26 08:01:08 -07:00
}
get {
}
values {
2015-06-18 07:55:17 -07:00
looped: bool; [[true if the input should be looped, false otherwise]]
2014-03-26 08:01:08 -07:00
}
}
@property length {
[[Length of the input
2014-03-26 08:01:08 -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
@since 1.8
]]
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
}
}
@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 {
output: Ecore.Audio; [[The output]] /* FIXME-cyclic Should be Ecore.Audio.Out */
2014-03-26 08:01:08 -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 {
@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 {
@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
}
}
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 {
Efl.Object.constructor;
Efl.Object.destructor;
Ecore.Audio.vio_set;
2014-03-26 08:01:08 -07:00
}
events {
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
}
}