Show / Hide Table of Contents

Class WaveFileWriter

Writes Wave data to a .wav file

Inheritance
Object
WaveFileWriter
Namespace: System.Dynamic.ExpandoObject
Assembly: ManagedBass.dll
Syntax
public class WaveFileWriter : object

Constructors

WaveFileWriter(Stream, WaveFormat)

Creates a WaveFileWriter that writes to a .

Declaration
public WaveFileWriter(Stream outStream, WaveFormat format)
Parameters
Stream outStream

WaveFormat format

Properties

Length

Number of bytes of audio

Declaration
public long Length { get; set; }
Property Value
Int64

Methods

Dispose()

Closes this WaveFile

Declaration
public void Dispose()

Finalize()

Finaliser - should only be called if the User forgot to close this WaveFileWriter

Declaration
protected void Finalize()

Write(Byte[], Int32)

Writes bytes to the WaveFile

Declaration
public bool Write(byte[] Data, int Length)
Parameters
Byte[] Data

the Buffer containing the wave data

Int32 Length

the number of bytes to write

Returns
Boolean

Write(Int16[], Int32)

Writes 16 bit samples to the Wave file

Declaration
public bool Write(short[] Data, int Length)
Parameters
Int16[] Data

The Buffer containing the wave data

Int32 Length

The number of bytes to write

Returns
Boolean

Write(Single[], Int32)

Writes 32 bit float samples to the Wave file

Declaration
public bool Write(float[] Data, int Length)
Parameters
Single[] Data

The Buffer containing the wave data

Int32 Length

The number of bytes to write

Returns
Boolean

Back to top Copyright © 2017 Mathew Sachin
Generated by DocFx