|
Xeno-rat
|
MP3 WaveFormat, MPEGLAYER3WAVEFORMAT from mmreg.h. More...
Public Member Functions | |
| Mp3WaveFormat (int sampleRate, int channels, int blockSize, int bitRate) | |
| Creates a new MP3 WaveFormat. | |
Public Member Functions inherited from NAudio.Wave.WaveFormat | |
| WaveFormat () | |
| Creates a new PCM 44.1Khz stereo 16 bit format. | |
| WaveFormat (int sampleRate, int channels) | |
| Creates a new 16 bit wave format with the specified sample rate and channel count. | |
| int | ConvertLatencyToByteSize (int milliseconds) |
| Converts the given latency in milliseconds to the corresponding byte size based on the average bytes per second. | |
| WaveFormat (int rate, int bits, int channels) | |
| Creates a new PCM format with the specified sample rate, bit depth and channels. | |
| WaveFormat (BinaryReader br) | |
| Reads a new WaveFormat object from a stream. | |
| override string | ToString () |
| Returns a string representation of the WaveFormat object. | |
| override bool | Equals (object obj) |
| Determines whether the current WaveFormat object is equal to another object. | |
| override int | GetHashCode () |
| Computes the hash code for the WaveFormat instance. | |
| virtual void | Serialize (BinaryWriter writer) |
| Serializes the wave format data and writes it to the specified BinaryWriter. | |
Public Attributes | |
| Mp3WaveFormatId | id |
| Wave format ID (wID) | |
| Mp3WaveFormatFlags | flags |
| Padding flags (fdwFlags) | |
| ushort | blockSize |
| Block Size (nBlockSize) | |
| ushort | framesPerBlock |
| Frames per block (nFramesPerBlock) | |
| ushort | codecDelay |
| Codec Delay (nCodecDelay) | |
Static Private Attributes | |
| const short | Mp3WaveFormatExtraBytes = 12 |
Additional Inherited Members | |
Static Public Member Functions inherited from NAudio.Wave.WaveFormat | |
| static WaveFormat | CreateCustomFormat (WaveFormatEncoding tag, int sampleRate, int channels, int averageBytesPerSecond, int blockAlign, int bitsPerSample) |
| Creates a custom WaveFormat with the specified parameters. | |
| static WaveFormat | CreateALawFormat (int sampleRate, int channels) |
| Creates a new WaveFormat with A-Law encoding. | |
| static WaveFormat | CreateMuLawFormat (int sampleRate, int channels) |
| Creates a new WaveFormat with MuLaw encoding. | |
| static WaveFormat | CreateIeeeFloatWaveFormat (int sampleRate, int channels) |
| Creates a new IEEE float wave format with the specified sample rate and number of channels. | |
| static WaveFormat | MarshalFromPtr (IntPtr pointer) |
| Marshals a WaveFormat structure from the specified pointer. | |
| static IntPtr | MarshalToPtr (WaveFormat format) |
| Marshals the WaveFormat structure to a pointer. | |
| static WaveFormat | FromFormatChunk (BinaryReader br, int formatChunkLength) |
| Reads the wave format and extra data from the specified binary reader and returns the WaveFormatExtraData. | |
Protected Attributes inherited from NAudio.Wave.WaveFormat | |
| WaveFormatEncoding | waveFormatTag |
| format type | |
| short | channels |
| number of channels | |
| int | sampleRate |
| sample rate | |
| int | averageBytesPerSecond |
| for buffer estimation | |
| short | blockAlign |
| block size of data | |
| short | bitsPerSample |
| number of bits per sample of mono data | |
| short | extraSize |
| number of following bytes | |
Properties inherited from NAudio.Wave.WaveFormat | |
| WaveFormatEncoding | Encoding [get] |
| Returns the encoding type used. | |
| int | Channels [get] |
| Returns the number of channels (1=mono,2=stereo etc) | |
| int | SampleRate [get] |
| Returns the sample rate (samples per second) | |
| int | AverageBytesPerSecond [get] |
| Returns the average number of bytes used per second. | |
| virtual int | BlockAlign [get] |
| Returns the block alignment. | |
| int | BitsPerSample [get] |
| Returns the number of bits per sample (usually 16 or 32, sometimes 24 or 8) Can be 0 for some codecs. | |
| int | ExtraSize [get] |
| Returns the number of extra bytes used by this waveformat. Often 0, except for compressed formats which store extra data after the WAVEFORMATEX header. | |
MP3 WaveFormat, MPEGLAYER3WAVEFORMAT from mmreg.h.
|
inline |
Creates a new MP3 WaveFormat.
| ushort NAudio.Wave.Mp3WaveFormat.blockSize |
Block Size (nBlockSize)
| ushort NAudio.Wave.Mp3WaveFormat.codecDelay |
Codec Delay (nCodecDelay)
| Mp3WaveFormatFlags NAudio.Wave.Mp3WaveFormat.flags |
Padding flags (fdwFlags)
| ushort NAudio.Wave.Mp3WaveFormat.framesPerBlock |
Frames per block (nFramesPerBlock)
| Mp3WaveFormatId NAudio.Wave.Mp3WaveFormat.id |
Wave format ID (wID)
|
staticprivate |