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