Click or drag to resize

AudioWaveFormat Class

Represents a Wave file format
Inheritance Hierarchy
SystemObject
  Ozeki.MediaAudioWaveFormat
    Ozeki.MediaMp3AudioWaveFormat

Namespace: Ozeki.Media
Assembly: OzekiSDK (in OzekiSDK.dll) Version: 10.4.13.0
Syntax
public class AudioWaveFormat

The AudioWaveFormat type exposes the following members.

Constructors
 NameDescription
Public methodAudioWaveFormat Creates a new PCM 44.1Khz stereo 16 bit format
Public methodAudioWaveFormat(BinaryReader) Reads a new AudioWaveFormat object from a stream
Public methodAudioWaveFormat(Int32, Int32) Creates a new 16 bit wave format with the specified sample rate and channel count
Public methodAudioWaveFormat(Int32, Int32, Int32) Creates a new PCM format with the specified sample rate, bit depth and channels
Top
Properties
 NameDescription
Public propertyAverageBytesPerSecond Returns the average number of bytes used per second
Public propertyBitsPerSample Returns the number of bits per sample (usually 16 or 32, sometimes 24 or 8) Can be 0 for some codecs
Public propertyBlockAlign Returns the block alignment
Public propertyChannels Returns the number of channels (1=mono,2=stereo etc)
Public propertyEncoding Returns the encoding type used
Public propertyExtraSize Returns the number of extra bytes used by this waveformat. Often 0, except for compressed formats which store extra data after the WAVEFORMATEX header
Public propertySampleRate Returns the sample rate (samples per second)
Public propertyWaveFormatTagformat type
Top
Methods
 NameDescription
Public methodConvertLatencyToByteSize Gets the size of a wave buffer equivalent to the latency in milliseconds.
Public methodStatic memberCreateALawFormat Creates an A-law wave format
Public methodStatic memberCreateCustomFormat Creates a AudioWaveFormat with custom members
Public methodStatic memberCreateIeeeFloatWaveFormat Creates a new 32 bit IEEE floating point wave format
Public methodStatic memberCreateMuLawFormat Creates a Mu-law wave format
Public methodEquals Compares with another AudioWaveFormat object
(Overrides ObjectEquals(Object))
Public methodStatic memberFromFormatChunk Reads in a AudioWaveFormat (with extra data) from a fmt chunk (chunk identifier and length should already have been read)
Public methodGetHashCode Provides a Hashcode for this AudioWaveFormat
(Overrides ObjectGetHashCode)
Public methodStatic memberMarshalFromPtr Helper function to retrieve a AudioWaveFormat structure from a pointer
Public methodStatic memberMarshalToPtr Helper function to marshal AudioWaveFormat to an IntPtr
Public methodSerialize Writes this AudioWaveFormat object to a stream
Public methodToString Reports this AudioWaveFormat as a string
(Overrides ObjectToString)
Top
See Also