Sample class More...
#include <InstantIO/Sample.h>
Public Member Functions | |
Sample () | |
Creates a new Sample object. | |
~Sample () | |
Destroys the Sample object. | |
void | setParameters (unsigned int samplerate, unsigned char bits, unsigned char channels, unsigned long numFrames) |
Sets the parameters of the sample. | |
unsigned int | getSamplerate () const |
Returns the samplerate. | |
unsigned char | getBits () const |
Returns the number of bits. | |
unsigned char | getChannels () const |
Returns the number of channels. | |
unsigned long | getNumFrames () const |
Returns the number of frames. | |
unsigned int | getBytesPerFrame () const |
Returns the number of bytes per frame. | |
const char * | getBuffer () const |
Returns a pointer to the buffer that holds the sample data. | |
char * | getBuffer () |
Returns a pointer to the buffer that holds the sample data. | |
unsigned long | getBufferSize () const |
Returns the size of the buffer that holds the sample data in bytes. |
Sample class
void InstantIO::Sample::setParameters | ( | unsigned int | samplerate, | |
unsigned char | bits, | |||
unsigned char | channels, | |||
unsigned long | numFrames | |||
) |
Sets the parameters of the sample.
samplerate | The samplerate | |
bits | The number of bits | |
channels | The number of channels | |
numFrames | The number of frames |
unsigned int InstantIO::Sample::getSamplerate | ( | ) | const [inline] |
Returns the samplerate.
unsigned char InstantIO::Sample::getBits | ( | ) | const [inline] |
Returns the number of bits.
unsigned char InstantIO::Sample::getChannels | ( | ) | const [inline] |
Returns the number of channels.
unsigned long InstantIO::Sample::getNumFrames | ( | ) | const [inline] |
Returns the number of frames.
unsigned int InstantIO::Sample::getBytesPerFrame | ( | ) | const [inline] |
Returns the number of bytes per frame.
const char* InstantIO::Sample::getBuffer | ( | ) | const [inline] |
Returns a pointer to the buffer that holds the sample data.
char* InstantIO::Sample::getBuffer | ( | ) | [inline] |
Returns a pointer to the buffer that holds the sample data.
unsigned long InstantIO::Sample::getBufferSize | ( | ) | const [inline] |
Returns the size of the buffer that holds the sample data in bytes.