C# Class TOAPI.Types.WAVEFORMATEX

Exibir arquivo 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_oe property

public ushort cbSize
return ushort

nAvgBytesPerSec public_oe property

public int nAvgBytesPerSec
return int

nBlockAlign public_oe property

public short nBlockAlign
return short

nChannels public_oe property

public short nChannels
return short

nSamplesPerSec public_oe property

public int nSamplesPerSec
return int

wBitsPerSample public_oe property

public ushort wBitsPerSample
return ushort

wFormatTag public_oe property

public short wFormatTag
return short