Garrett Hopper 8 سال پیش
والد
کامیت
8f6bbb1731
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      hxd/snd/ALEmulator.hx

+ 1 - 1
hxd/snd/ALEmulator.hx

@@ -176,7 +176,7 @@ class ALBuffer {
 **/
 class ALEmulator {
 
-	public static var NATIVE_FREQ : Int = #if js @:privateAccess Std.int(NativeChannel.getContext().sampleRate) #else 44100 #end;
+	public static var NATIVE_FREQ : Int = #if js @:privateAccess Std.int(NativeChannel.getContext() == null ? 44100 : NativeChannel.getContext().sampleRate) #else 44100 #end;
 
 	// api