Skip to content

WaveWriter

AutumnSky1010 edited this page Aug 14, 2023 · 4 revisions

Class WaveWriter

Definition

Namespace: SoundMaker.WaveFile
Assembly: SoundMaker.dll

Write the data to .wav file.

public class WaveWriter

Inheritance

Object -> WaveWriter

Constructors

WaveWriter(FormatChunk, SoundWaveChunk)

Declaration

public WaveWriter(FormatChunk format, SoundWaveChunk soundWave)

Parameters

Type Desctiption
FormatChunk Chunk of format for the .wav file.
SoundWaveChunk Chunk of sound data for the .wav file.

Methods

Write(string)

Declaration

public void Write(string path)

Parameters

Type Desctiption
string The path of .wav file. .wav file will be created, but if not found intermediate directory, will throws DirectoryNotFoundException

Write(Stream)

Declaration

public void Write(Stream stream)

version
2.1.0 ~

Parameters

Type Desctiption
Stream The stream.
Clone this wiki locally