following structure of other stuff

This commit is contained in:
Cameron Taylor
2021-12-18 18:05:32 -05:00
parent b3dd46ee68
commit cd2ab1600e
2 changed files with 5 additions and 4 deletions

View File

@@ -211,8 +211,9 @@ class HTML5AudioSource
public function setPitch(value:Float):Float public function setPitch(value:Float):Float
{ {
#if lime_howlerjs
parent.buffer.__srcHowl.rate(value); parent.buffer.__srcHowl.rate(value);
#end
return getPitch(); return getPitch();
} }

View File

@@ -111,12 +111,12 @@ class AudioSource
return __backend.setLoops(value); return __backend.setLoops(value);
} }
private function get_pitch():Float @:noCompletion private function get_pitch():Float
{ {
return __backend.getPitch(); return __backend.getPitch();
} }
private function set_pitch(value:Float):Float @:noCompletion private function set_pitch(value:Float):Float
{ {
return __backend.setPitch(value); return __backend.setPitch(value);
} }