shithub: cstory

Download patch

ref: b3e40b047577ea6d11564daa27652470d6279e3c
parent: 1ae63bea967e9952c60814d8f0caa36534262498
author: Clownacy <Clownacy@users.noreply.github.com>
date: Sat Apr 4 16:52:24 EDT 2020

Fix SDL2 audio backend

--- a/src/Backends/Audio/SDL2.cpp
+++ b/src/Backends/Audio/SDL2.cpp
@@ -5,7 +5,7 @@
 
 #include "SDL.h"
 
-#include "../Platform.h"
+#include "../Misc.h"
 #include "../../Organya.h"
 #include "../../WindowsWrapper.h"
 
@@ -66,7 +66,7 @@
 {
 	if (SDL_InitSubSystem(SDL_INIT_AUDIO) < 0)
 	{
-		PlatformBackend_ShowMessageBox("Fatal error (SDL2 audio backend)", "'SDL_InitSubSystem(SDL_INIT_AUDIO)' failed");
+		Backend_ShowMessageBox("Fatal error (SDL2 audio backend)", "'SDL_InitSubSystem(SDL_INIT_AUDIO)' failed");
 		return FALSE;
 	}
 
@@ -90,7 +90,7 @@
 
 	if (device_id == 0)
 	{
-		PlatformBackend_ShowMessageBox("Fatal error (SDL2 audio backend)", "'SDL_OpenAudioDevice' failed");
+		Backend_ShowMessageBox("Fatal error (SDL2 audio backend)", "'SDL_OpenAudioDevice' failed");
 		return FALSE;
 	}