![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cWaveFormat.h>
Public Member Functions | |
void | Init () noexcept |
void | Init (WORD wFormatTag2, WORD nChannels2=1, UINT nSamplesPerSec2=8000, WORD wBitsPerSample2=8, WORD wSizeEx2=0) noexcept |
bool | isPCM () const noexcept |
WORD | get_Channels () const noexcept |
size_t | get_BlockSize () const noexcept |
UINT | get_SamplesPerSec () const noexcept |
size_t | get_BytesPerSec () const noexcept |
size_t | get_SampleSize () const |
UINT | get_SampleRangeHalf (void) const |
size_t | GetStructSize (bool bMin) const noexcept |
void | ReCalc (void) |
bool | isValidFormat () const |
Additional Inherited Members | |
![]() | |
WORD | wFormatTag |
format type = WAVE_FORMAT_PCM More... | |
WORD | nChannels |
number of channels (i.e. mono, stereo...) (left is always first) More... | |
UINT32 | nSamplesPerSec |
sample rate More... | |
UINT32 | nAvgBytesPerSec |
for buffer estimation More... | |
WORD | nBlockAlign |
block size of data More... | |
WORD | wBitsPerSample |
Number of bits per sample of mono data. More... | |
WORD | cbSize |
The count in bytes of the size of. More... | |
Store audio format as a variable sized structure. real size can be same as PCMWAVEFORMAT (which is 2 bytes less)
|
inlinenoexcept |
in bytes
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
Get half the max dynamic range available
|
inline |
In Bytes (only valid for PCM really.)
|
inlinenoexcept |
|
inlinenoexcept |
Total needed struct size to serialize this. Size needed for WAVEFORMATEX structure + any extra data.
|
inlinenoexcept |
|
inlinenoexcept |
WORD wFormatTag = WAVE_FORMAT_PCM
|
inlinenoexcept |
bool GrayLib::cWaveFormatEx::isValidFormat | ( | ) | const |
is plausibly playable ?
void GrayLib::cWaveFormatEx::ReCalc | ( | void | ) |
Set derived values properly. Fill in the non user owned fields of the format structure. Only do this if: