#include "NoAudio.hpp" using namespace audio; NoSound::NoSound(std::shared_ptr pcm, bool keepPCM) { duration = pcm->getDuration(); if (keepPCM) { this->pcm = pcm; } } Sound* NoAudio::createSound(std::shared_ptr pcm, bool keepPCM) { return new NoSound(pcm, keepPCM); } Stream* NoAudio::openStream(std::shared_ptr stream, bool keepSource) { return new NoStream(stream, keepSource); } NoAudio* NoAudio::create() { return new NoAudio(); }