#include <iso_synth_sample.h>
Inherits iso::synth::Buffer.
Inheritance diagram for iso::synth::Sample:


Public Member Functions | |
| Sample () | |
| default contructor | |
| Sample (sample pValue) | |
| paramater based contructor | |
| Sample (const Sample &pSample) | |
| copy constructor | |
| Sample (const Buffer &pBuffer, unsigned int pFrameIndex=0, unsigned int pChannelIndex=0) throw (SynthException) | |
| copy constructor | |
| Sample (const serialize::SerializeData &pSerializeData) throw (serialize::SerializeException) | |
| serialization based constructor | |
| ~Sample () | |
| destructor | |
| virtual serialize::SerializeData | serialize (const String &pSerialName=sClassName) const |
| create serializeData for sample | |
| const Sample & | operator= (const Sample &pSample) |
| assignment operator | |
| const Buffer & | operator= (const Buffer &pBuffer) throw (SynthException) |
| assignment operator | |
| const Sample & | operator+= (const Sample &pSample) |
| += operator | |
| const Sample & | operator+= (const Buffer &pBuffer) throw (SynthException) |
| += operator | |
| const Sample & | operator *= (const Sample &pSample) |
| *= operator | |
| const Sample & | 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 | |
| virtual void | setChannelCount (unsigned int pChannelCount) throw (SynthException) |
| change number of channels | |
| void | appendFrames (const Buffer &pBuffer) throw (SynthException) |
| append frames from pBuffer to sample | |
| void | appendChannels (const Buffer &pBuffer) throw (SynthException) |
| append channels from pBuffer to sample | |
| String | info () const |
| obtain textual sample information | |
Static Public Member Functions | |
| static serialize::Serializable * | deSerialize (const serialize::SerializeData &pSerializeData) throw (serialize::SerializeException) |
| create sample from SerializeData | |
Static Public Attributes | |
| static const String | sClassName |
| default name | |
Friends | |
| std::ostream & | operator<< (std::ostream &pOstream, const Sample &pSample) |
| print sample information | |
audio data that contains one frame and one channel of samples
Created by Daniel Bisig on 06/18/06.
| Sample::Sample | ( | ) |
default contructor
| Sample::Sample | ( | sample | pValue | ) |
paramater based contructor
| pValue | value to set sample value to |
| Sample::Sample | ( | const Sample & | pSample | ) |
copy constructor
| pSample | sample to copy properties from |
| Sample::Sample | ( | const Buffer & | pBuffer, | |
| unsigned int | pFrameIndex = 0, |
|||
| unsigned int | pChannelIndex = 0 | |||
| ) | throw (SynthException) |
copy constructor
| pBuffer | buffer to copy properties from | |
| pFrameIndex | channel index of buffer | |
| pChannelIndex | channel index of buffer |
| SynthException | channel index or frame index out of range |
| Sample::Sample | ( | const serialize::SerializeData & | pSerializeData | ) | throw (serialize::SerializeException) |
serialization based constructor
| pSerializeData | serialization data |
| SerializeException | failed to create sample |
| Sample::~Sample | ( | ) |
destructor
| serialize::SerializeData Sample::serialize | ( | const String & | pSerialName = sClassName |
) | const [virtual] |
| serialize::Serializable * Sample::deSerialize | ( | const serialize::SerializeData & | pSerializeData | ) | throw (serialize::SerializeException) [static] |
create sample from SerializeData
| pSerializeData | SerializeData |
| SerializeException | incompatible SerializeData |
Reimplemented from iso::synth::Buffer.
assignment operator
| pSample | sample to copy properties from |
| const Buffer & Sample::operator= | ( | const Buffer & | pBuffer | ) | throw (SynthException) [virtual] |
assignment operator
| pBuffer | buffer to copy properties from (first frame, first channel) |
| SynthException | never |
Reimplemented from iso::synth::Buffer.
+= operator
| pSample | sample to be added |
| const Sample & Sample::operator+= | ( | const Buffer & | pBuffer | ) | throw (SynthException) [virtual] |
+= operator
| pBuffer | buffer to be added (first frame, first channel) |
| SynthException | never |
Reimplemented from iso::synth::Buffer.
*= operator
| pSample | sample to be multiplied |
| const Sample & Sample::operator *= | ( | const Buffer & | pBuffer | ) | throw (SynthException) [virtual] |
*= operator
| pBuffer | buffer to be multiplied (first frame, first channel) |
| SynthException | never |
Reimplemented from iso::synth::Buffer.
| void Sample::setSize | ( | unsigned int | pFrameCount, | |
| unsigned int | pChannelCount | |||
| ) | throw (SynthException) [virtual] |
change buffer size
| pFrameCount | new frame count | |
| pChannelCount | new channel count |
| SynthException | if frame count or channel count != 1 |
Reimplemented from iso::synth::Buffer.
| void Sample::setFrameCount | ( | unsigned int | pFrameCount | ) | throw (SynthException) [virtual] |
change number of frames
| pFrameCount | new frameCount |
| SynthException | if frame count != 1 |
Reimplemented from iso::synth::Buffer.
| void Sample::setChannelCount | ( | unsigned int | pChannelCount | ) | throw (SynthException) [virtual] |
change number of channels
| pChannelCount | new channelCount |
| SynthException | if channel count != 1 |
Reimplemented from iso::synth::Buffer.
| void Sample::appendFrames | ( | const Buffer & | pBuffer | ) | throw (SynthException) [virtual] |
append frames from pBuffer to sample
| pBuffer |
| SynthException | always! illegal operation for sample |
Reimplemented from iso::synth::Buffer.
| void Sample::appendChannels | ( | const Buffer & | pBuffer | ) | throw (SynthException) [virtual] |
append channels from pBuffer to sample
| pBuffer |
| SynthException | always! illegal operation for sample |
Reimplemented from iso::synth::Buffer.
| String Sample::info | ( | ) | const [virtual] |
obtain textual sample information
Reimplemented from iso::synth::Buffer.
| std::ostream& operator<< | ( | std::ostream & | pOstream, | |
| const Sample & | pSample | |||
| ) | [friend] |
print sample information
const String Sample::sClassName [static] |
1.5.1