#include <iso_synth_channel.h>
Inherits iso::synth::Buffer.
Inheritance diagram for iso::synth::Channel:
Public Member Functions | |
Channel () | |
default contructor | |
Channel (sample pValue) | |
paramater based contructor | |
Channel (unsigned int pFrameCount) | |
paramater based contructor | |
Channel (int pFrameCount) | |
paramater based contructor | |
Channel (unsigned int pFrameCount, sample pValue) | |
paramater based contructor | |
Channel (unsigned int pFrameCount, const sample *pValues) | |
paramater based contructor | |
Channel (unsigned int pFrameCount, double pValue1, double pValue2,...) | |
paramater based contructor | |
Channel (const Channel &pChannel) | |
copy constructor | |
Channel (const math::Vector< sample > &pVector) | |
copy constructor | |
Channel (const Buffer &pBuffer, unsigned int pChannelIndex) throw (SynthException) | |
copy constructor | |
Channel (const serialize::SerializeData &pSerializeData) throw (serialize::SerializeException) | |
serialization based constructor | |
~Channel () | |
destructor | |
virtual serialize::SerializeData | serialize (const String &pSerialName=sClassName) const |
create serializeData for channel | |
void | copyTo (Buffer &pBuffer, unsigned int pChannelIndex) throw (SynthException) |
copy channel into buffer | |
void | copyFrom (Buffer &pBuffer, unsigned int pChannelIndex) throw (SynthException) |
copy buffer into channel | |
const Channel & | operator= (const Channel &pChannel) throw (SynthException) |
assignment operator | |
const Buffer & | operator= (const Buffer &pBuffer) throw (SynthException) |
assignment operator | |
bool | operator== (const Channel &pChannel) const |
comparison operator | |
bool | operator== (const Buffer &pBuffer) const |
comparison operator | |
sample & | operator[] (unsigned int pFrameIndex) throw (SynthException) |
returns sample | |
const sample & | operator[] (unsigned int pFrameIndex) const throw (SynthException) |
returns sample | |
sample | operator() (unsigned int pFrameIndex) const throw (SynthException) |
returns truncated sample | |
sample | operator() (sample pFrameIndex) const throw (SynthException) |
returns interpolated sample | |
const Channel & | operator+= (const Channel &pChannel) throw (SynthException) |
+= operator | |
const Channel & | operator+= (const Buffer &pBuffer) throw (SynthException) |
+= operator | |
const Channel & | operator *= (const Channel &pChannel) throw (SynthException) |
*= operator | |
const Channel & | operator *= (const Buffer &pBuffer) throw (SynthException) |
*= operator | |
virtual void | setSize (unsigned int pFrameCount, unsigned int pChannelCount) throw (SynthException) |
change buffer size | |
virtual void | setChannelCount (unsigned int pChannelCount) throw (SynthException) |
change number of channels | |
void | appendChannels (const Buffer &pBuffer) throw (SynthException) |
append channels from pBuffer to channel | |
String | info () const |
obtain textual channel information | |
Static Public Member Functions | |
static serialize::Serializable * | deSerialize (const serialize::SerializeData &pSerializeData) throw (serialize::SerializeException) |
create channel from SerializeData | |
Static Public Attributes | |
static const String | sClassName |
default name | |
Friends | |
std::ostream & | operator<< (std::ostream &pOstream, const Channel &pChannel) |
print channel information |
audio data that contains one channel of samples
Created by Daniel Bisig on 06/18/06.
Channel::Channel | ( | ) |
default contructor
Channel::Channel | ( | sample | pValue | ) |
paramater based contructor
pValue | value to fill channel with |
Channel::Channel | ( | unsigned int | pFrameCount | ) |
paramater based contructor
pFrameCount | frame count |
Channel::Channel | ( | int | pFrameCount | ) |
paramater based contructor
pFrameCount | frame count |
Channel::Channel | ( | unsigned int | pFrameCount, | |
sample | pValue | |||
) |
paramater based contructor
pFrameCount | frame count | |
pValue | value to fill channel with |
Channel::Channel | ( | unsigned int | pFrameCount, | |
const sample * | pValues | |||
) |
paramater based contructor
pChannelCount | channel count | |
pValues | values to fill frame with |
Channel::Channel | ( | unsigned int | pFrameCount, | |
double | pValue1, | |||
double | pValue2, | |||
... | ||||
) |
paramater based contructor
pFrameCount | frame count | |
pValue1 | first value of a series of values to fill channel with | |
pValue2 | second value of a series of values to fill channel with |
Channel::Channel | ( | const Channel & | pChannel | ) |
copy constructor
pChannel | channel to copy properties from |
Channel::Channel | ( | const math::Vector< sample > & | pVector | ) |
copy constructor
pVector | vector to copy properties from |
Channel::Channel | ( | const Buffer & | pBuffer, | |
unsigned int | pChannelIndex | |||
) | throw (SynthException) |
copy constructor
pBuffer | buffer to copy properties from | |
pChannelIndex | channel index of buffer |
SynthException | channel index out of range |
Channel::Channel | ( | const serialize::SerializeData & | pSerializeData | ) | throw (serialize::SerializeException) |
serialization based constructor
pSerializeData | serialization data |
SerializeException | failed to create channel |
Channel::~Channel | ( | ) |
destructor
serialize::SerializeData Channel::serialize | ( | const String & | pSerialName = sClassName |
) | const [virtual] |
serialize::Serializable * Channel::deSerialize | ( | const serialize::SerializeData & | pSerializeData | ) | throw (serialize::SerializeException) [static] |
create channel from SerializeData
pSerializeData | SerializeData |
SerializeException | incompatible SerializeData |
Reimplemented from iso::synth::Buffer.
void Channel::copyTo | ( | Buffer & | pBuffer, | |
unsigned int | pChannelIndex | |||
) | throw (SynthException) |
copy channel into buffer
pBuffer | target buffer | |
pChannelIndex | target channel |
SynthException | channel out of bounds or frameCount doesn't match |
void Channel::copyFrom | ( | Buffer & | pBuffer, | |
unsigned int | pChannelIndex | |||
) | throw (SynthException) |
copy buffer into channel
pBuffer | source buffer | |
pChannelIndex | source channel |
SynthException | channel out of bounds or frameCount doesn't match |
const Channel & Channel::operator= | ( | const Channel & | pChannel | ) | throw (SynthException) |
assignment operator
pChannel | channel to copy properties from |
SynthException | framecount doesn't match |
const Buffer & Channel::operator= | ( | const Buffer & | pBuffer | ) | throw (SynthException) [virtual] |
assignment operator
pBuffer | buffer to copy properties from |
SynthException | framecount doesn't match |
Reimplemented from iso::synth::Buffer.
bool Channel::operator== | ( | const Channel & | pChannel | ) | const |
comparison operator
pChannel | channel to which the comparison is made to |
bool Channel::operator== | ( | const Buffer & | pBuffer | ) | const [virtual] |
comparison operator
pBuffer | buffer to which the comparison is made to |
Reimplemented from iso::synth::Buffer.
sample & Channel::operator[] | ( | unsigned int | pFrameIndex | ) | throw (SynthException) |
returns sample
pFrameIndex | frame index |
SynthException | frameIndex out of range |
const sample & Channel::operator[] | ( | unsigned int | pFrameIndex | ) | const throw (SynthException) |
returns sample
pFrameIndex | frame index |
SynthException | frameIndex out of range |
sample Channel::operator() | ( | unsigned int | pFrameIndex | ) | const throw (SynthException) |
returns truncated sample
pFrameIndex | frame index |
SynthException | frameIndex out of range |
sample Channel::operator() | ( | sample | pFrameIndex | ) | const throw (SynthException) |
returns interpolated sample
pFrameIndex | frame index |
SynthException | frameIndex out of range |
const Channel & Channel::operator+= | ( | const Channel & | pChannel | ) | throw (SynthException) |
+= operator
pChannel | channel to be added |
SynthException | channels don't possess same number of frames |
const Channel & Channel::operator+= | ( | const Buffer & | pBuffer | ) | throw (SynthException) [virtual] |
+= operator
pBuffer | buffer to be added (first channel) |
SynthException | buffers don't contain same number of frames |
Reimplemented from iso::synth::Buffer.
const Channel & Channel::operator *= | ( | const Channel & | pChannel | ) | throw (SynthException) |
*= operator
pChannel | channel to be multiplied |
SynthException | channels don't possess same number of frames |
const Channel & Channel::operator *= | ( | const Buffer & | pBuffer | ) | throw (SynthException) [virtual] |
*= operator
pBuffer | buffer to be multiplied (first channel) |
SynthException | buffers don't contain same number of frames |
Reimplemented from iso::synth::Buffer.
void Channel::setSize | ( | unsigned int | pFrameCount, | |
unsigned int | pChannelCount | |||
) | throw (SynthException) [virtual] |
change buffer size
pFrameCount | new frame count | |
pChannelCount | new channel count |
SynthException | channel count != 1 |
Reimplemented from iso::synth::Buffer.
void Channel::setChannelCount | ( | unsigned int | pChannelCount | ) | throw (SynthException) [virtual] |
change number of channels
pChannelCount | new channelCount |
SynthException | whenever pChannelCount != 1 |
Reimplemented from iso::synth::Buffer.
void Channel::appendChannels | ( | const Buffer & | pBuffer | ) | throw (SynthException) [virtual] |
append channels from pBuffer to channel
pBuffer |
SynthException | always! illegal operation for channel |
Reimplemented from iso::synth::Buffer.
String Channel::info | ( | ) | const [virtual] |
obtain textual channel information
Reimplemented from iso::synth::Buffer.
std::ostream& operator<< | ( | std::ostream & | pOstream, | |
const Channel & | pChannel | |||
) | [friend] |
print channel information
const String Channel::sClassName [static] |