WavFile

The WavFile class

Constructors

this
this(string path)

Takes in a path to the wav file to be read from

this
this(GenericSound sound)

Takes in a sound object and constructs the file using the sound

Members

Functions

combine
void combine(WavFile target)

Combines the file's sound with another file's sound

save
void save(string path)

Saves the object into a file. path's default value is the objects file path

setDuration
void setDuration(double duration)

Sets the play duration (seconds)

setPitch
void setPitch(uint pitch)

Sets the pitch (sample rate)

Properties

dataSize
size_t dataSize [@property getter]

The total data size for the file (including all sub files)

duration
double duration [@property getter]

The duration of the sound (seconds)

filePath
string filePath [@property getter]

The path of the wav file. If the WavFile(GenericSound) constructor is used, the default value is ""

files
WavFile[] files [@property getter]

An array of all sub files in the file

pitch
uint pitch [@property getter]

The pitch of the sound (sample rate)

sound
GenericSound sound [@property getter]

The GenericSound object for the file

Static functions

construct
WavFile construct(double duration, uint pitch, string path)

Constructs a new WavFile object by arguments

Meta