74 unsigned int sampleRate,
75 unsigned int channelCount,
76 const std::vector<SoundChannel>& channelMap);
91 [[nodiscard]]
bool openFromFile(
const std::filesystem::path& filename,
92 unsigned int sampleRate,
93 unsigned int channelCount,
94 const std::vector<SoundChannel>& channelMap);
103 void write(
const std::int16_t* samples, std::uint64_t count);
115 std::unique_ptr<SoundFileWriter> m_writer;
#define SFML_AUDIO_API
Definition Export.hpp:42
void write(const std::int16_t *samples, std::uint64_t count)
Write audio samples to the file.
OutputSoundFile(const std::filesystem::path &filename, unsigned int sampleRate, unsigned int channelCount, const std::vector< SoundChannel > &channelMap)
Construct the sound file from the disk for writing.
bool openFromFile(const std::filesystem::path &filename, unsigned int sampleRate, unsigned int channelCount, const std::vector< SoundChannel > &channelMap)
Open the sound file from the disk for writing.
OutputSoundFile()=default
Default constructor.
void close()
Close the current file.
Definition BlendMode.hpp:34