mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-11-22 09:22:18 -05:00
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
|
||||
#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
|
||||
|
Loading…
Reference in New Issue
Block a user