Anklang-0.3.0.dev956+gd75ac925 anklang-0.3.0.dev956+gd75ac925
ASE — Anklang Sound Engine (C++)

« « « Anklang Documentation
Loading...
Searching...
No Matches
wave.hh
Go to the documentation of this file.
1 // This Source Code Form is licensed MPL-2.0: http://mozilla.org/MPL/2.0
2#pragma once
3
4#include <ase/defs.hh>
5
6namespace Ase {
7
8class WaveWriter {
9public:
10 virtual ~WaveWriter ();
11 virtual String name () const = 0;
12 virtual ssize_t write (const float *frames, size_t n_frames) = 0;
13 virtual bool close () = 0;
14};
16
17WaveWriterP wave_writer_create_wav (int rate, int channels, const String &filename, int mode = 0664, uint8_t n_bits = 32);
18
19WaveWriterP wave_writer_create_opus (int rate, int channels, const String &filename, int mode = 0664, int complexity = 10, float bitrate = 128);
20String wave_writer_opus_version ();
21
22WaveWriterP wave_writer_create_flac (int rate, int channels, const String &filename, int mode = 0664, int compresion = 9);
23String wave_writer_flac_version ();
24
25} // Ase
26
The Anklang C++ API namespace.
Definition api.hh:8
typedef ssize_t