summaryrefslogtreecommitdiff
path: root/src/lib/ecore_audio
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2019-01-17 17:14:19 +0100
committerDaniel Kolesa <d.kolesa@samsung.com>2019-01-17 17:17:39 +0100
commit48b43928bbbe7e79431cf7650c28d9acb8dfc830 (patch)
tree395cca87beab8a4327bfc9747cc951e564d1add8 /src/lib/ecore_audio
parent0b7b80919d37d84c84cc6186beee8e00581d9264 (diff)
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
Diffstat (limited to 'src/lib/ecore_audio')
-rw-r--r--src/lib/ecore_audio/ecore_audio.eo2
-rw-r--r--src/lib/ecore_audio/ecore_audio_in.eo9
2 files changed, 7 insertions, 4 deletions
diff --git a/src/lib/ecore_audio/ecore_audio.eo b/src/lib/ecore_audio/ecore_audio.eo
index 988ba00..e2c9fb8 100644
--- a/src/lib/ecore_audio/ecore_audio.eo
+++ b/src/lib/ecore_audio/ecore_audio.eo
@@ -12,7 +12,7 @@ enum Ecore.Audio.Format {
12 last [[Sentinel value to indicate last enum field during iteration]] 12 last [[Sentinel value to indicate last enum field during iteration]]
13} 13}
14 14
15class Ecore.Audio (Efl.Object) 15abstract Ecore.Audio (Efl.Object)
16{ 16{
17 [[Convenience audio class.]] 17 [[Convenience audio class.]]
18 18
diff --git a/src/lib/ecore_audio/ecore_audio_in.eo b/src/lib/ecore_audio/ecore_audio_in.eo
index d46f99d..43f0d7b 100644
--- a/src/lib/ecore_audio/ecore_audio_in.eo
+++ b/src/lib/ecore_audio/ecore_audio_in.eo
@@ -44,7 +44,7 @@ class Ecore.Audio.In (Ecore.Audio)
44 channels: int; [[The number of channels]] 44 channels: int; [[The number of channels]]
45 } 45 }
46 } 46 }
47 @property preloaded @pure_virtual { 47 @property preloaded {
48 [[Preloaded state of the input 48 [[Preloaded state of the input
49 49
50 @since 1.8 50 @since 1.8
@@ -82,7 +82,7 @@ class Ecore.Audio.In (Ecore.Audio)
82 82
83 @since 1.8 83 @since 1.8
84 ]] 84 ]]
85 set @pure_virtual { 85 set {
86 } 86 }
87 get { 87 get {
88 } 88 }
@@ -134,7 +134,7 @@ class Ecore.Audio.In (Ecore.Audio)
134 @in len: size; [[The amount of samples to read]] 134 @in len: size; [[The amount of samples to read]]
135 } 135 }
136 } 136 }
137 seek @pure_virtual { 137 seek {
138 [[Seeks within the input 138 [[Seeks within the input
139 139
140 @since 1.8 140 @since 1.8
@@ -153,6 +153,9 @@ class Ecore.Audio.In (Ecore.Audio)
153 Efl.Object.constructor; 153 Efl.Object.constructor;
154 Efl.Object.destructor; 154 Efl.Object.destructor;
155 Ecore.Audio.vio_set; 155 Ecore.Audio.vio_set;
156 @empty .length {set;}
157 @empty .preloaded {set; get;}
158 @empty .seek;
156 } 159 }
157 events { 160 events {
158 in,looped: void; [[Called when an input has looped.]] 161 in,looped: void; [[Called when an input has looped.]]