SoundFormat Struct Reference
#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 |
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 |
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::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] |
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
The documentation for this struct was generated from the following file: