C# Class ManagedBass.WaveFormat

Represents a Wave file format.
Afficher le fichier Open project: ManagedBass/ManagedBass Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
FromParams ( int Frequency, int Channels, Resolution Resolution ) : WaveFormat

Method Details

CreateIeeeFloat() public static méthode

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
Résultat WaveFormat

FromChannel() public static méthode

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

Serialize() public méthode

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

WaveFormat() public méthode

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

WaveFormat() public méthode

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
Résultat System

WaveFormat() public méthode

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
Résultat System