Przeglądaj źródła

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

Sang Hak Chun 9 lat temu
rodzic
commit
4ff6eecfbb
1 zmienionych plików z 3 dodań i 1 usunięć
  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;