commit 499619071be05bb757de03e8f1e1ed5b2fa0fe6c parent 59a80c8808b32d35453d48fa6ccbf6a7b0f8ed94 Author: Michael Savage <mikejsavage@gmail.com> Date: Sun Feb 5 13:46:31 +0200 Add mingw_audio_output Diffstat:
mingw_audio_output.cc | | | 7 | +++++++ |
mingw_audio_output.h | | | 3 | +++ |
platform_audio_output.cc | | | 4 | +++- |
platform_audio_output.h | | | 4 | +++- |
diff --git a/mingw_audio_output.cc b/mingw_audio_output.cc @@ -0,0 +1,7 @@ +#include "platform_audio_output.h" + +void audio_output_init() { } +void audio_output_term() { } + +void audio_output_open( AudioOutputDevice * device, AudioOutputCallback callback ) { } +void audio_output_close( AudioOutputDevice * device ) { } diff --git a/mingw_audio_output.h b/mingw_audio_output.h @@ -0,0 +1,3 @@ +#pragma once + +struct AudioOutputDevice { }; diff --git a/platform_audio_output.cc b/platform_audio_output.cc @@ -1,6 +1,8 @@ #include "platform.h" -#if PLATFORM_WINDOWS +#if COMPILER_MINGW +#include "mingw_audio_output.cc" +#elif PLATFORM_WINDOWS #include "win32_audio_output.cc" #elif PLATFORM_LINUX #include "linux_audio_output.cc" diff --git a/platform_audio_output.h b/platform_audio_output.h @@ -14,7 +14,9 @@ void audio_output_term(); void audio_output_open( AudioOutputDevice * device, AudioOutputCallback callback ); void audio_output_close( AudioOutputDevice * device ); -#if PLATFORM_WINDOWS +#if COMPILER_MINGW +#include "mingw_audio_output.h" +#elif PLATFORM_WINDOWS #include "win32_audio_output.h" #elif PLATFORM_LINUX #include "linux_audio_output.h"