#include <soundformat.h>
List of all members.
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 |
void | convertSamplesToFloatInterleaved (const char *src, float *dst, size_t n_frames) const |
void | convertFloatInterleavedToSamples (const float *src, char *dst, size_t n_frames) const |
void | convertSamplesToFloatNonInterleaved (const char *src, float **dst, size_t n_frames) const |
void | convertFloatNonInterleavedToSamples (const float **src, char *dst, size_t n_frames) const |
void | scaleSamples (char *_src, float scale, size_t n_frames) const |
void | minMaxAvgMagnitudePerChannel (const char *src, size_t n_frames, double *vmin, double *vmax, double *vavg) const |
bool | isValid () const |
Detailed Description
Definition at line 31 of file soundformat.h.
Constructor & Destructor Documentation
SoundFormat::SoundFormat |
( |
unsigned |
sample_rate, |
|
|
unsigned |
channels, |
|
|
unsigned |
sample_bits, |
|
|
bool |
is_signed, |
|
|
unsigned |
endianess, |
|
|
const QString & |
enc |
|
) |
| |
|
inline |
SoundFormat::SoundFormat |
( |
unsigned |
sample_rate, |
|
|
unsigned |
channels, |
|
|
unsigned |
sample_bits, |
|
|
bool |
is_signed, |
|
|
unsigned |
endianess |
|
) |
| |
|
inline |
SoundFormat::SoundFormat |
( |
unsigned |
sample_rate, |
|
|
unsigned |
channels, |
|
|
unsigned |
sample_bits, |
|
|
bool |
is_signed |
|
) |
| |
|
inline |
SoundFormat::SoundFormat |
( |
bool |
stereo | ) |
|
|
inline |
SoundFormat::SoundFormat |
( |
| ) |
|
|
inline |
Member Function Documentation
void SoundFormat::convertFloatInterleavedToSamples |
( |
const float * |
src, |
|
|
char * |
dst, |
|
|
size_t |
n_frames |
|
) |
| const |
void SoundFormat::convertFloatNonInterleavedToSamples |
( |
const float ** |
src, |
|
|
char * |
dst, |
|
|
size_t |
n_frames |
|
) |
| const |
void SoundFormat::convertSamplesToFloatInterleaved |
( |
const char * |
src, |
|
|
float * |
dst, |
|
|
size_t |
n_frames |
|
) |
| const |
void SoundFormat::convertSamplesToFloatNonInterleaved |
( |
const char * |
src, |
|
|
float ** |
dst, |
|
|
size_t |
n_frames |
|
) |
| const |
int SoundFormat::frameSize |
( |
| ) |
const |
bool SoundFormat::isValid |
( |
| ) |
const |
|
inline |
int SoundFormat::maxValue |
( |
| ) |
const |
void SoundFormat::minMaxAvgMagnitudePerChannel |
( |
const char * |
src, |
|
|
size_t |
n_frames, |
|
|
double * |
vmin, |
|
|
double * |
vmax, |
|
|
double * |
vavg |
|
) |
| const |
int SoundFormat::minValue |
( |
| ) |
const |
bool SoundFormat::operator!= |
( |
const SoundFormat & |
o | ) |
const |
|
inline |
bool SoundFormat::operator== |
( |
const SoundFormat & |
o | ) |
const |
|
inline |
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 |
Member Data Documentation
unsigned SoundFormat::m_Channels |
QString SoundFormat::m_Encoding |
unsigned SoundFormat::m_Endianess |
bool SoundFormat::m_IsSigned |
unsigned SoundFormat::m_SampleBits |
unsigned SoundFormat::m_SampleRate |
The documentation for this struct was generated from the following file: