25 #ifndef CPP3DS_OUTPUTSOUNDFILE_HPP
26 #define CPP3DS_OUTPUTSOUNDFILE_HPP
31 #include <cpp3ds/Config.hpp>
32 #include <cpp3ds/System/NonCopyable.hpp>
38 class SoundFileWriter;
74 bool openFromFile(
const std::string& filename,
unsigned int sampleRate,
unsigned int channelCount);
83 void write(
const Int16* samples, Uint64 count);
102 #endif // CPP3DS_OUTPUTSOUNDFILE_HPP
void write(const Int16 *samples, Uint64 count)
Write audio samples to the file.
Abstract base class for sound file encoding.
OutputSoundFile()
Default constructor.
~OutputSoundFile()
Destructor.
Utility class that makes any derived class non-copyable.
bool openFromFile(const std::string &filename, unsigned int sampleRate, unsigned int channelCount)
Open the sound file from the disk for writing.
Provide write access to sound files.