diff --git a/lime/audio/AudioBuffer.hx b/lime/audio/AudioBuffer.hx index df67c8fc7..729343c34 100644 --- a/lime/audio/AudioBuffer.hx +++ b/lime/audio/AudioBuffer.hx @@ -73,8 +73,7 @@ class AudioBuffer { #if lime_console - // TODO(james4k): AudioBuffer.fromBytes - openfl.Lib.notImplemented ("Sound.fromBytes"); + lime.Lib.notImplemented ("AudioBuffer.fromBytes"); #elseif ((cpp || neko || nodejs) && !macro) diff --git a/lime/audio/AudioSource.hx b/lime/audio/AudioSource.hx index e02708771..95359c913 100644 --- a/lime/audio/AudioSource.hx +++ b/lime/audio/AudioSource.hx @@ -402,6 +402,11 @@ class AudioSource { #elseif flash return Std.int (channel.position); + + #elseif lime_console + + lime.Lib.notImplemented ("AudioSource.get_currentTime"); + return 0; #else @@ -425,6 +430,11 @@ class AudioSource { // TODO: create new sound channel //channel.position = value; return pauseTime = value; + + #elseif lime_console + + lime.Lib.notImplemented ("AudioSource.set_currentTime"); + return value; #else @@ -471,6 +481,11 @@ class AudioSource { #elseif flash return channel.soundTransform.volume; + + #elseif lime_console + + lime.Lib.notImplemented ("AudioSource.get_gain"); + return 1; #else @@ -493,6 +508,11 @@ class AudioSource { soundTransform.volume = value; channel.soundTransform = soundTransform; return value; + + #elseif lime_console + + lime.Lib.notImplemented ("AudioSource.set_gain"); + return value; #else @@ -519,6 +539,11 @@ class AudioSource { #elseif flash return Std.int (buffer.src.length); + + #elseif lime_console + + lime.Lib.notImplemented ("AudioSource.get_length"); + return 0; #else @@ -532,7 +557,12 @@ class AudioSource { private function set_length (value:Int):Int { - #if (!flash && !html5) + #if lime_console + + lime.Lib.notImplemented ("AudioSource.set_length"); + return value; + + #elseif (!flash && !html5) if (playing && __length != value) {