Catch null pointer exception
NPE was occurring in setPosition where parent.buffer was undefined.
This commit is contained in:
@@ -246,7 +246,7 @@ class HTML5AudioSource
|
||||
position.w = value.w;
|
||||
|
||||
#if lime_howlerjs
|
||||
if (parent.buffer.__srcHowl != null && parent.buffer.__srcHowl.pos != null) parent.buffer.__srcHowl.pos(position.x, position.y, position.z, id);
|
||||
if (parent.buffer !=null && parent.buffer.__srcHowl != null && parent.buffer.__srcHowl.pos != null) parent.buffer.__srcHowl.pos(position.x, position.y, position.z, id);
|
||||
// There are more settings to the position of the sound on the "pannerAttr()" function of howler. Maybe somebody who understands sound should look into it?
|
||||
#end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user