#include <aflibConfig.h>
Public Methods | |
| aflibConfig () | |
| Constructor. | |
| aflibConfig (int num_channels, aflib_data_size bits_per_sample, int samples_per_second) | |
| Constructor with parameters. | |
| ~aflibConfig () | |
| Destructor. | |
| INLINE int | getChannels () const |
| Gets the number of channels. | |
| INLINE void | setChannels (int channels) |
| Sets the number of channels. | |
| INLINE int | getBitsPerSample () const |
| Gets the number of bits per sample. | |
| INLINE aflib_data_size | getSampleSize () const |
| Gets the sample size. | |
| INLINE void | setSampleSize (aflib_data_size bits_per_sample) |
| Sets the sample size. | |
| INLINE int | getSamplesPerSecond () const |
| Gets the samples per second. | |
| INLINE void | setSamplesPerSecond (int samples_per_second) |
| Sets the samples per second. | |
| INLINE aflib_data_orientation | getDataOrientation () const |
| Gets the data orientation. | |
| INLINE void | setDataOrientation (aflib_data_orientation data_orientation) |
| Sets the data orientation. | |
| INLINE aflib_data_endian | getDataEndian () const |
| Gets the endian of the data. | |
| INLINE void | setDataEndian (aflib_data_endian data_endian) |
| Sets the endian of the data. | |
| INLINE long long | getTotalSamples () const |
| Gets the total number of samples. | |
| INLINE void | setTotalSamples (long long total) |
| Sets the total number of samples. | |
This class defines how audio data is formatted. This is just a simple data class. Most functions are inline in order to speed execution.
|
|
Constructor.
|
|
|
Constructor with parameters.
|
|
|
Destructor.
|
|
|
Gets the number of bits per sample.
|
|
|
Gets the number of channels.
|
|
|
Gets the endian of the data.
|
|
|
Gets the data orientation.
|
|
|
Gets the sample size.
|
|
|
Gets the samples per second.
|
|
|
Gets the total number of samples.
|
|
|
Sets the number of channels.
|
|
|
Sets the endian of the data.
|
|
|
Sets the data orientation.
|
|
|
Sets the sample size.
|
|
|
Sets the samples per second.
|
|
|
Sets the total number of samples.
|
1.2.6 written by Dimitri van Heesch,
© 1997-2001