C# Class TOAPI.Types.WAVEFORMATEX

Show file Open project: Wiladams/NewTOAPIA Class Usage Examples

Public Properties

Property Type Description
cbSize ushort
nAvgBytesPerSec int
nBlockAlign short
nChannels short
nSamplesPerSec int
wBitsPerSample ushort
wFormatTag short

Public Methods

Method Description
CreatePCMFormat ( int channels, int sampleRate, int bitsPerSample ) : WAVEFORMATEX
Read ( BinaryReader rdr ) : uint
Write ( BinaryWriter wrtr ) : void

Method Details

CreatePCMFormat() public static method

public static CreatePCMFormat ( int channels, int sampleRate, int bitsPerSample ) : WAVEFORMATEX
channels int
sampleRate int
bitsPerSample int
return WAVEFORMATEX

Read() public method

public Read ( BinaryReader rdr ) : uint
rdr System.IO.BinaryReader
return uint

Write() public method

public Write ( BinaryWriter wrtr ) : void
wrtr System.IO.BinaryWriter
return void

Property Details

cbSize public property

public ushort cbSize
return ushort

nAvgBytesPerSec public property

public int nAvgBytesPerSec
return int

nBlockAlign public property

public short nBlockAlign
return short

nChannels public property

public short nChannels
return short

nSamplesPerSec public property

public int nSamplesPerSec
return int

wBitsPerSample public property

public ushort wBitsPerSample
return ushort

wFormatTag public property

public short wFormatTag
return short