#include <soundformat.h>
Public Member Functions | |
SoundFormat (unsigned sample_rate, unsigned channels, unsigned sample_bits, bool is_signed, unsigned endianess, const QString &enc) | |
SoundFormat (unsigned sample_rate, unsigned channels, unsigned sample_bits, bool is_signed, unsigned endianess) | |
SoundFormat (unsigned sample_rate, unsigned channels, unsigned sample_bits, bool is_signed) | |
SoundFormat (bool stereo) | |
SoundFormat () | |
bool | operator== (const SoundFormat &o) const |
bool | operator!= (const SoundFormat &o) const |
int | sampleSize () const |
int | frameSize () const |
int | minValue () const |
int | maxValue () const |
void | restoreConfig (const QString &prefix, const KConfigGroup &c) |
void | saveConfig (const QString &prefix, KConfigGroup &c) const |
int | convertSampleToInt (const char *sample, bool do_scale) const |
void | convertIntToSample (int src, char *dst, bool is_scaled) const |
void | convertSamplesToInts (const char *src, int *dst, size_t n, bool do_scale) const |
void | convertIntsToSamples (const int *src, char *dst, size_t n, bool is_scaled) const |
void | convertSamplesToFloat (const char *src, float **dst, size_t n_frames) const |
void | convertFloatsToSamples (const float **src, char *dst, size_t n_frames) const |
void | scaleSamples (char *_src, float scale, size_t n_frames) const |
Public Attributes | |
unsigned | m_SampleRate |
unsigned | m_Channels |
unsigned | m_SampleBits |
bool | m_IsSigned |
unsigned | m_Endianess |
QString | m_Encoding |
Definition at line 31 of file soundformat.h.
SoundFormat::SoundFormat | ( | unsigned | sample_rate, |
unsigned | channels, | ||
unsigned | sample_bits, | ||
bool | is_signed, | ||
unsigned | endianess, | ||
const QString & | enc | ||
) | [inline] |
Definition at line 39 of file soundformat.h.
SoundFormat::SoundFormat | ( | unsigned | sample_rate, |
unsigned | channels, | ||
unsigned | sample_bits, | ||
bool | is_signed, | ||
unsigned | endianess | ||
) | [inline] |
Definition at line 41 of file soundformat.h.
SoundFormat::SoundFormat | ( | unsigned | sample_rate, |
unsigned | channels, | ||
unsigned | sample_bits, | ||
bool | is_signed | ||
) | [inline] |
Definition at line 43 of file soundformat.h.
SoundFormat::SoundFormat | ( | bool | stereo | ) | [inline] |
Definition at line 45 of file soundformat.h.
SoundFormat::SoundFormat | ( | ) | [inline] |
Definition at line 47 of file soundformat.h.
void SoundFormat::convertFloatsToSamples | ( | const float ** | src, |
char * | dst, | ||
size_t | n_frames | ||
) | const |
void SoundFormat::convertIntsToSamples | ( | const int * | src, |
char * | dst, | ||
size_t | n, | ||
bool | is_scaled | ||
) | const |
void SoundFormat::convertIntToSample | ( | int | src, |
char * | dst, | ||
bool | is_scaled | ||
) | const |
void SoundFormat::convertSamplesToFloat | ( | const char * | src, |
float ** | dst, | ||
size_t | n_frames | ||
) | const |
void SoundFormat::convertSamplesToInts | ( | const char * | src, |
int * | dst, | ||
size_t | n, | ||
bool | do_scale | ||
) | const |
int SoundFormat::convertSampleToInt | ( | const char * | sample, |
bool | do_scale | ||
) | const |
int SoundFormat::frameSize | ( | ) | const |
int SoundFormat::maxValue | ( | ) | const |
int SoundFormat::minValue | ( | ) | const |
bool SoundFormat::operator!= | ( | const SoundFormat & | o | ) | const [inline] |
Definition at line 58 of file soundformat.h.
bool SoundFormat::operator== | ( | const SoundFormat & | o | ) | const [inline] |
Definition at line 50 of file soundformat.h.
References m_Channels, m_Encoding, m_Endianess, m_IsSigned, m_SampleBits, and m_SampleRate.
void SoundFormat::restoreConfig | ( | const QString & | prefix, |
const KConfigGroup & | c | ||
) |
int SoundFormat::sampleSize | ( | ) | const |
void SoundFormat::saveConfig | ( | const QString & | prefix, |
KConfigGroup & | c | ||
) | const |
void SoundFormat::scaleSamples | ( | char * | _src, |
float | scale, | ||
size_t | n_frames | ||
) | const |
unsigned SoundFormat::m_Channels |
Definition at line 33 of file soundformat.h.
Referenced by operator==().
QString SoundFormat::m_Encoding |
Definition at line 37 of file soundformat.h.
Referenced by operator==().
unsigned SoundFormat::m_Endianess |
Definition at line 36 of file soundformat.h.
Referenced by operator==().
Definition at line 35 of file soundformat.h.
Referenced by operator==().
unsigned SoundFormat::m_SampleBits |
Definition at line 34 of file soundformat.h.
Referenced by operator==().
unsigned SoundFormat::m_SampleRate |
Definition at line 32 of file soundformat.h.
Referenced by operator==().