mirror of
https://github.com/xenia-project/xenia.git
synced 2025-12-06 07:12:03 +01:00
41 lines
1.4 KiB
C++
41 lines
1.4 KiB
C++
/**
|
|
******************************************************************************
|
|
* Xenia : Xbox 360 Emulator Research Project *
|
|
******************************************************************************
|
|
* Copyright 2013 Ben Vanik. All rights reserved. *
|
|
* Released under the BSD license - see LICENSE in the root for more details. *
|
|
******************************************************************************
|
|
*/
|
|
|
|
#ifndef XENIA_APU_NOP_NOP_AUDIO_SYSTEM_H_
|
|
#define XENIA_APU_NOP_NOP_AUDIO_SYSTEM_H_
|
|
|
|
#include "xenia/apu/audio_system.h"
|
|
|
|
namespace xe {
|
|
namespace apu {
|
|
namespace nop {
|
|
|
|
class NopAudioSystem : public AudioSystem {
|
|
public:
|
|
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,
|
|
AudioDriver** out_driver) override;
|
|
AudioDriver* CreateDriver(xe::threading::Semaphore* semaphore,
|
|
uint32_t frequency, uint32_t channels,
|
|
bool need_format_conversion) override;
|
|
void DestroyDriver(AudioDriver* driver) override;
|
|
};
|
|
|
|
} // namespace nop
|
|
} // namespace apu
|
|
} // namespace xe
|
|
|
|
#endif // XENIA_APU_NOP_NOP_AUDIO_SYSTEM_H_
|