25#ifndef SFML_SOUNDFILEWRITER_HPP
26#define SFML_SOUNDFILEWRITER_HPP
31#include <SFML/Audio/Export.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;
Abstract base class for sound file encoding.
virtual void write(const Int16 *samples, Uint64 count)=0
Write audio samples to the open file.
virtual bool open(const std::string &filename, unsigned int sampleRate, unsigned int channelCount)=0
Open a sound file for writing.
virtual ~SoundFileWriter()
Virtual destructor.