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