struct final
#include <audioreader.hpp>
v_1_0_0::CDDAValidator Service: verify the CDDA conformity of values.
Public static functions
- static auto bits_per_sample(const int& bits_per_sample) -> bool
- Return TRUE iff the number of bits per sample conforms to CDDA.
- static auto num_channels(const int& num_channels) -> bool
- Return TRUE iff the number of channels conforms to CDDA.
- static auto samples_per_second(const int& samples_per_second) -> bool
- Return TRUE if the sample rate conforms to CDDA.
Function documentation
static bool arcsdec:: v_1_0_0:: CDDAValidator:: bits_per_sample(const int& bits_per_sample)
Return TRUE iff the number of bits per sample conforms to CDDA.
Parameters | |
---|---|
bits_per_sample in | The actual number of bits per sample |
Returns | TRUE iff the number of bits per sample is 16 (conforming to CDDA) otherwise FALSE |
static bool arcsdec:: v_1_0_0:: CDDAValidator:: num_channels(const int& num_channels)
Return TRUE iff the number of channels conforms to CDDA.
Parameters | |
---|---|
num_channels in | The actual number of channels |
Returns | TRUE iff the number of channels is 2 (conforming to CDDA) otherwise FALSE |
static bool arcsdec:: v_1_0_0:: CDDAValidator:: samples_per_second(const int& samples_per_second)
Return TRUE if the sample rate conforms to CDDA.
Parameters | |
---|---|
samples_per_second in | The actual number of samples per second |
Returns | TRUE iff the number of samples per second is 44100 (conforming to CDDA) otherwise FALSE |