Anklang 0.3.0-460-gc4ef46ba
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#ifndef __ASE_WAVE_HH__
3#define __ASE_WAVE_HH__
4
5#include <ase/defs.hh>
6
7namespace Ase {
8
9class WaveWriter {
10public:
11 virtual ~WaveWriter ();
12 virtual String name () const = 0;
13 virtual ssize_t write (const float *frames, size_t n_frames) = 0;
14 virtual bool close () = 0;
15};
17
18WaveWriterP wave_writer_create_wav (int rate, int channels, const String &filename, int mode = 0664, uint8_t n_bits = 32);
19
20WaveWriterP wave_writer_create_opus (int rate, int channels, const String &filename, int mode = 0664, int complexity = 10, float bitrate = 128);
21String wave_writer_opus_version ();
22
23WaveWriterP wave_writer_create_flac (int rate, int channels, const String &filename, int mode = 0664, int compresion = 9);
24String wave_writer_flac_version ();
25
26} // Ase
27
28#endif // __ASE_WAVE_HH__
The Anklang C++ API namespace.
Definition api.hh:9
typedef ssize_t