#include "NoAudio.hpp" using namespace audio; NoSound::NoSound(const std::shared_ptr& pcm, bool keepPCM) { duration = pcm->getDuration(); if (keepPCM) { this->pcm = pcm; } } std::unique_ptr NoAudio::createSound( std::shared_ptr pcm, bool keepPCM ) { return std::make_unique(pcm, keepPCM); } std::unique_ptr NoAudio::openStream( std::shared_ptr stream, bool keepSource ) { return std::make_unique(stream, keepSource); } std::unique_ptr NoAudio::create() { return std::make_unique(); }