forked from enlightenment/efl
ecore_audio: remove pure virtual functions from classes
Summary: A call to a undefined function results in a NOP we can get the same behaviour with @empty. In Ecore.Audio this pure_virtual function makes sense, so make the class abstract. ref T7632 Reviewers: cedric, segfaultxavi, zmike, q66 Reviewed By: segfaultxavi Subscribers: #reviewers, #committers Tags: #efl Maniphest Tasks: T7632 Differential Revision: https://phab.enlightenment.org/D7669
This commit is contained in:
parent
0b7b80919d
commit
48b43928bb
|
@ -12,7 +12,7 @@ enum Ecore.Audio.Format {
|
|||
last [[Sentinel value to indicate last enum field during iteration]]
|
||||
}
|
||||
|
||||
class Ecore.Audio (Efl.Object)
|
||||
abstract Ecore.Audio (Efl.Object)
|
||||
{
|
||||
[[Convenience audio class.]]
|
||||
|
||||
|
|
|
@ -44,7 +44,7 @@ class Ecore.Audio.In (Ecore.Audio)
|
|||
channels: int; [[The number of channels]]
|
||||
}
|
||||
}
|
||||
@property preloaded @pure_virtual {
|
||||
@property preloaded {
|
||||
[[Preloaded state of the input
|
||||
|
||||
@since 1.8
|
||||
|
@ -82,7 +82,7 @@ class Ecore.Audio.In (Ecore.Audio)
|
|||
|
||||
@since 1.8
|
||||
]]
|
||||
set @pure_virtual {
|
||||
set {
|
||||
}
|
||||
get {
|
||||
}
|
||||
|
@ -134,7 +134,7 @@ class Ecore.Audio.In (Ecore.Audio)
|
|||
@in len: size; [[The amount of samples to read]]
|
||||
}
|
||||
}
|
||||
seek @pure_virtual {
|
||||
seek {
|
||||
[[Seeks within the input
|
||||
|
||||
@since 1.8
|
||||
|
@ -153,6 +153,9 @@ class Ecore.Audio.In (Ecore.Audio)
|
|||
Efl.Object.constructor;
|
||||
Efl.Object.destructor;
|
||||
Ecore.Audio.vio_set;
|
||||
@empty .length {set;}
|
||||
@empty .preloaded {set; get;}
|
||||
@empty .seek;
|
||||
}
|
||||
events {
|
||||
in,looped: void; [[Called when an input has looped.]]
|
||||
|
|
Loading…
Reference in New Issue