C# Class AlbLib.Sounds.RawPCMSound

Inheritance: SoundBase
Datei anzeigen Open project: IllidanS4/AlbLib Class Usage Examples

Public Methods

Method Description
RawPCMSound ( Stream stream, int length ) : System

Loads sound from stream.

RawPCMSound ( byte data ) : System

Loads sound from byte array.

ToWAVE ( ) : byte[]

Converts sound to wave format.

ToWAVEStream ( ) : MemoryStream
WriteWAVEToStream ( Stream output ) : int

Private Methods

Method Description
RawPCMSound ( ) : System

Method Details

RawPCMSound() public method

Loads sound from stream.
public RawPCMSound ( Stream stream, int length ) : System
stream Stream /// Input stream. ///
length int /// Length of ///
return System

RawPCMSound() public method

Loads sound from byte array.
public RawPCMSound ( byte data ) : System
data byte /// Raw PCM data. ///
return System

ToWAVE() public method

Converts sound to wave format.
public ToWAVE ( ) : byte[]
return byte[]

ToWAVEStream() public method

public ToWAVEStream ( ) : MemoryStream
return System.IO.MemoryStream

WriteWAVEToStream() public method

public WriteWAVEToStream ( Stream output ) : int
output Stream
return int