#include <SoundRegion.h>
Public Types | |
enum | ChannelMask { AllChannels = 0, LeftChannel, RightChannel } |
Public Member Functions | |
SoundRegion () | |
SoundRegion (unsigned begin, unsigned len, ChannelMask chan=AllChannels) | |
unsigned | offset () const |
unsigned | endOffset () const |
unsigned | length () const |
void | setOffset (unsigned n) |
void | setLength (unsigned n) |
ChannelMask | channels () const |
void | setChannels (ChannelMask n) |
bool | operator== (SoundRegion const ®) const |
bool | operator!= (SoundRegion const ®) const |
bool | operator< (SoundRegion const ®) const |
bool | containsFrame (unsigned frame) const |
bool | containsRegion (SoundRegion const ®) const |
Static Public Member Functions | |
static SoundRegion const & | empty () |
Private Types | |
typedef Loki::SingletonHolder< SoundRegion > | _emptyReg |
Private Attributes | |
unsigned | _beginOff |
int | _frames |
ChannelMask | _channels |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|