25 #ifndef CPP3DS_SOUNDFILEWRITER_HPP
26 #define CPP3DS_SOUNDFILEWRITER_HPP
31 #include <cpp3ds/Config.hpp>
61 virtual bool open(
const std::string& filename,
unsigned int sampleRate,
unsigned int channelCount) = 0;
70 virtual void write(
const Int16* samples, Uint64 count) = 0;
76 #endif // CPP3DS_SOUNDFILEWRITER_HPP
virtual bool open(const std::string &filename, unsigned int sampleRate, unsigned int channelCount)=0
Open a sound file for writing.
Abstract base class for sound file encoding.
virtual void write(const Int16 *samples, Uint64 count)=0
Write audio samples to the open file.
virtual ~SoundFileWriter()
Virtual destructor.