Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

aflibConfig Class Reference

Audio data configuration. More...

#include <aflibConfig.h>

List of all members.

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.


Detailed Description

Audio data configuration.

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 & Destructor Documentation

aflibConfig::aflibConfig ( )
 

Constructor.

aflibConfig::aflibConfig ( int num_channels,
aflib_data_size bits_per_sample,
int samples_per_second )
 

Constructor with parameters.

aflibConfig::~aflibConfig ( )
 

Destructor.


Member Function Documentation

INLINE int aflibConfig::getBitsPerSample ( ) const [inline]
 

Gets the number of bits per sample.

INLINE int aflibConfig::getChannels ( ) const [inline]
 

Gets the number of channels.

INLINE aflib_data_endian aflibConfig::getDataEndian ( ) const [inline]
 

Gets the endian of the data.

INLINE aflib_data_orientation aflibConfig::getDataOrientation ( ) const [inline]
 

Gets the data orientation.

INLINE aflib_data_size aflibConfig::getSampleSize ( ) const [inline]
 

Gets the sample size.

INLINE int aflibConfig::getSamplesPerSecond ( ) const [inline]
 

Gets the samples per second.

INLINE long long aflibConfig::getTotalSamples ( ) const [inline]
 

Gets the total number of samples.

INLINE void aflibConfig::setChannels ( int channels ) [inline]
 

Sets the number of channels.

INLINE void aflibConfig::setDataEndian ( aflib_data_endian data_endian ) [inline]
 

Sets the endian of the data.

INLINE void aflibConfig::setDataOrientation ( aflib_data_orientation data_orientation ) [inline]
 

Sets the data orientation.

INLINE void aflibConfig::setSampleSize ( aflib_data_size bits_per_sample ) [inline]
 

Sets the sample size.

INLINE void aflibConfig::setSamplesPerSecond ( int samples_per_second ) [inline]
 

Sets the samples per second.

INLINE void aflibConfig::setTotalSamples ( long long total ) [inline]
 

Sets the total number of samples.


The documentation for this class was generated from the following files:
Generated at Tue Aug 7 22:18:07 2001 for Open Source Audio Library Project by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001