Moves specific audio player header file include to after the definition of AudioPlayer class in AudioPlayer.h
This commit is contained in:
parent
4ce19e1448
commit
7675309e3f
|
@ -1,14 +1,5 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "stdint.h"
|
#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 {
|
namespace Ship {
|
||||||
class AudioPlayer {
|
class AudioPlayer {
|
||||||
|
@ -23,3 +14,13 @@ namespace Ship {
|
||||||
constexpr int GetSampleRate() const { return 44100; }
|
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
|
||||||
|
|
Loading…
Reference in New Issue