[App] Simplify and improve factory template.
[App] Rework audio and input system creation.
This commit is contained in:
@@ -21,6 +21,8 @@ class NopAudioSystem : public AudioSystem {
|
||||
explicit NopAudioSystem(cpu::Processor* processor);
|
||||
~NopAudioSystem() override;
|
||||
|
||||
static bool IsAvailable() { return true; }
|
||||
|
||||
static std::unique_ptr<AudioSystem> Create(cpu::Processor* processor);
|
||||
|
||||
X_STATUS CreateDriver(size_t index, xe::threading::Semaphore* semaphore,
|
||||
|
||||
@@ -21,6 +21,8 @@ class XAudio2AudioSystem : public AudioSystem {
|
||||
explicit XAudio2AudioSystem(cpu::Processor* processor);
|
||||
~XAudio2AudioSystem() override;
|
||||
|
||||
static bool IsAvailable() { return true; }
|
||||
|
||||
static std::unique_ptr<AudioSystem> Create(cpu::Processor* processor);
|
||||
|
||||
X_RESULT CreateDriver(size_t index, xe::threading::Semaphore* semaphore,
|
||||
|
||||
Reference in New Issue
Block a user