C# Class ManagedBass.WaveFormat

Represents a Wave file format.
Mostra file Open project: ManagedBass/ManagedBass Class Usage Examples

Public Methods

Method Description
CreateIeeeFloat ( int SampleRate, int Channels ) : WaveFormat

Creates a new 32 bit IEEE floating point wave format

FromChannel ( int Channel ) : WaveFormat

Creates a new instance of WaveFormat from a Channel.

Serialize ( BinaryWriter Writer ) : void

Writes this WaveFormat object to a stream

WaveFormat ( ) : System

Creates a new PCM 44.1Khz stereo 16 bit format

WaveFormat ( int SampleRate, int Channels ) : System

Creates a new 16 bit wave format with the specified sample rate and channel count

WaveFormat ( int SampleRate, int BitsPerSample, int Channels ) : System

Creates a new PCM format with the specified sample rate, bit depth and channels

Private Methods

Method Description
FromParams ( int Frequency, int Channels, Resolution Resolution ) : WaveFormat

Method Details

CreateIeeeFloat() public static method

Creates a new 32 bit IEEE floating point wave format
public static CreateIeeeFloat ( int SampleRate, int Channels ) : WaveFormat
SampleRate int sample rate
Channels int number of channels
return WaveFormat

FromChannel() public static method

Creates a new instance of WaveFormat from a Channel.
public static FromChannel ( int Channel ) : WaveFormat
Channel int
return WaveFormat

Serialize() public method

Writes this WaveFormat object to a stream
public Serialize ( BinaryWriter Writer ) : void
Writer System.IO.BinaryWriter the output stream
return void

WaveFormat() public method

Creates a new PCM 44.1Khz stereo 16 bit format
public WaveFormat ( ) : System
return System

WaveFormat() public method

Creates a new 16 bit wave format with the specified sample rate and channel count
public WaveFormat ( int SampleRate, int Channels ) : System
SampleRate int Sample Rate
Channels int Number of channels
return System

WaveFormat() public method

Creates a new PCM format with the specified sample rate, bit depth and channels
public WaveFormat ( int SampleRate, int BitsPerSample, int Channels ) : System
SampleRate int
BitsPerSample int
Channels int
return System