/** ****************************************************************************** * 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. * ****************************************************************************** * * @modified Tom Clay, 2026 - Adapted for ReXGlue runtime */ #pragma once #include #include namespace rex::audio { class AudioDriver { public: explicit AudioDriver(memory::Memory* memory); virtual ~AudioDriver(); virtual void SubmitFrame(uint32_t samples_ptr) = 0; protected: inline uint8_t* TranslatePhysical(uint32_t guest_address) const { return memory_->TranslatePhysical(guest_address); } memory::Memory* memory_ = nullptr; }; } // namespace rex::audio