Explorar o código

Make EmscriptenCore use SDLAudioInterface when PortAudio isn't available (pt.2)

Sang Hak Chun %!s(int64=9) %!d(string=hai) anos
pai
achega
4ff6eecfbb
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      src/core/PolyEmscriptenCore.cpp

+ 3 - 1
src/core/PolyEmscriptenCore.cpp

@@ -135,7 +135,9 @@ EmscriptenCore::EmscriptenCore(PolycodeView *view, int _xRes, int _yRes, bool fu
 
 #ifndef NO_PAUDIO
 	services->getSoundManager()->setAudioInterface(new PAAudioInterface());
-#endif 
+#else
+	services->getSoundManager()->setAudioInterface(new SDLAudioInterface());
+#endif
 
 	lastMouseX = 0;
 	lastMouseY = 0;