Moves specific audio player header file include to after the definition of AudioPlayer class in AudioPlayer.h

This commit is contained in:
Kenix3 2022-08-03 20:20:15 -04:00
parent 4ce19e1448
commit 7675309e3f
1 changed files with 10 additions and 9 deletions

View File

@ -1,14 +1,5 @@
#pragma once
#include "stdint.h"
#ifndef _MSC_VER
#include "SDLAudioPlayer.h"
#endif
#ifdef _MSC_VER
#include "WasapiAudioPlayer.h"
#endif
#ifdef __APPLE__
#include "PulseAudioPlayer.h"
#endif
namespace Ship {
class AudioPlayer {
@ -23,3 +14,13 @@ namespace Ship {
constexpr int GetSampleRate() const { return 44100; }
};
}
#if !_MSC_VER && !__APPLE__
#include "SDLAudioPlayer.h"
#endif
#ifdef _MSC_VER
#include "WasapiAudioPlayer.h"
#endif
#ifdef __APPLE__
#include "PulseAudioPlayer.h"
#endif