Skip to content

Commit

Permalink
Renderer OPL through device
Browse files Browse the repository at this point in the history
  • Loading branch information
Raffaello committed Oct 31, 2023
1 parent b24bbdd commit 2b0b9ae
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include <HyperSonicDrivers/audio/IMixer.hpp>
#include <HyperSonicDrivers/audio/IAudioStream.hpp>
#include <HyperSonicDrivers/hardware/opl/OPL.hpp>
#include <HyperSonicDrivers/devices/Opl.hpp>

namespace HyperSonicDrivers::audio
{
Expand All @@ -21,6 +22,7 @@ namespace HyperSonicDrivers::audio

virtual void renderBuffer(IAudioStream* stream) = 0;
inline void renderBuffer(const std::shared_ptr<hardware::opl::OPL>& opl) { renderBuffer(opl->getAudioStream().get()); };
inline void renderBuffer(const std::shared_ptr<devices::Opl>& opl) { renderBuffer(opl->getHardware()->getAudioStream().get()); };

protected:
std::shared_ptr<IMixer> m_mixer;
Expand Down

0 comments on commit 2b0b9ae

Please sign in to comment.