audio-formats v1.5.2 (2022-01-14T17:02:04Z)
Dub
Repo
WAVEncoder
audioformats
wav
Use both for scanning and decoding
version(encodeWAV)
final
class
WAVEncoder {
enum
Format
;
static
bool
isFormatLinearPCM
(Format fmt);
this
(IOCallbacks* io, void* userData, int sampleRate, int numChannels, Format format, bool enableDither);
int
writeSamples
(T* inSamples, int frames);
int
sampleSize
();
int
frameSize
();
void
finalizeEncoding
();
}
Constructors
this
this
(IOCallbacks* io, void* userData, int sampleRate, int numChannels, Format format, bool enableDither)
Undocumented in source.
Members
Enums
Format
enum
Format
Undocumented in source.
Functions
finalizeEncoding
void
finalizeEncoding
()
Undocumented in source. Be warned that the author may not have intended to support it.
frameSize
int
frameSize
()
Undocumented in source. Be warned that the author may not have intended to support it.
sampleSize
int
sampleSize
()
Undocumented in source. Be warned that the author may not have intended to support it.
writeSamples
int
writeSamples
(T* inSamples, int frames)
Undocumented in source. Be warned that the author may not have intended to support it.
Static functions
isFormatLinearPCM
bool
isFormatLinearPCM
(Format fmt)
Undocumented in source. Be warned that the author may not have intended to support it.
Meta
Source
See Implementation
audioformats
wav
classes
WAVDecoder
WAVEncoder
Use both for scanning and decoding