OutputSoundFile.openFromFile

Open the sound file from the disk for writing.

The supported audio formats are: WAV, OGG/Vorbis, FLAC.

class OutputSoundFile
bool
openFromFile
(
const(char)[] filename
,,)

Parameters

filename const(char)[]

Path of the sound file to load

sampleRate uint

Sample rate of the sound

channelCount uint

Number of channels in the sound

Return Value

Type: bool

true if the file was successfully opened.

Meta