#include <mixing_track.h>
Nevrax France
Definition at line 46 of file mixing_track.h.
Public Member Functions | |
CTrack () | |
Constructor. | |
CSimpleSource * | getSource () |
Return the logical source. | |
void | init (ISoundDriver *sd) |
Init. | |
bool | isAvailable () const |
Return availability. | |
bool | isPlaying () const |
Returns true if the track is physically playing (different from getUserSource()->isPlaying()). | |
void | setSource (CSimpleSource *src) |
Set logical source (if NULL, the track becomes available). | |
virtual | ~CTrack () |
Destructor. | |
Data Fields | |
ISource * | DrvSource |
Physical source played by the driver. | |
Private Attributes | |
CSimpleSource * | _SimpleSource |
The current logical source. |
|
Constructor.
Definition at line 51 of file mixing_track.h. References _SimpleSource, and DrvSource.
00051 : DrvSource(NULL), _SimpleSource(NULL) {} |
|
Destructor.
Definition at line 55 of file mixing_track.h. References DrvSource.
|
|
Return the logical source.
Definition at line 67 of file mixing_track.h. References _SimpleSource. Referenced by NLSOUND::CAudioMixerUser::bufferUnloaded(), NLSOUND::CAudioMixerUser::freeTrack(), NLSOUND::CAudioMixerUser::getFreeTrack(), NLSOUND::CAudioMixerUser::reset(), and NLSOUND::CAudioMixerUser::update().
00067 { return _SimpleSource; } |
|
Init.
Definition at line 53 of file mixing_track.h. References NLSOUND::ISoundDriver::createSource(), and DrvSource. Referenced by NLSOUND::CAudioMixerUser::init().
00053 { DrvSource = sd->createSource(); } |
|
Return availability.
Definition at line 61 of file mixing_track.h. References _SimpleSource, DrvSource, NLSOUND::ISource::isStopped(), and nlassert.
00061 { nlassert( DrvSource != NULL ); return (_SimpleSource==NULL) && DrvSource->isStopped(); } |
|
Returns true if the track is physically playing (different from getUserSource()->isPlaying()).
Definition at line 63 of file mixing_track.h. References DrvSource, NLSOUND::ISource::isPlaying(), and nlassert. Referenced by NLSOUND::CAudioMixerUser::update().
|
|
Set logical source (if NULL, the track becomes available).
Definition at line 65 of file mixing_track.h. References _SimpleSource, and src. Referenced by NLSOUND::CAudioMixerUser::freeTrack(), and NLSOUND::CAudioMixerUser::getFreeTrack().
00065 { _SimpleSource = src; } |
|
The current logical source.
Definition at line 76 of file mixing_track.h. Referenced by CTrack(), getSource(), isAvailable(), and setSource(). |
|
Physical source played by the driver.
Definition at line 71 of file mixing_track.h. Referenced by CTrack(), NLSOUND::CSimpleSource::getTime(), init(), isAvailable(), isPlaying(), NLSOUND::CSimpleSource::play(), NLSOUND::CSimpleSource::setDirection(), NLSOUND::CSimpleSource::setGain(), NLSOUND::CSimpleSource::setLooping(), NLSOUND::CSimpleSource::setPitch(), NLSOUND::CSimpleSource::setPos(), NLSOUND::CSimpleSource::setRelativeGain(), NLSOUND::CSimpleSource::setSourceRelativeMode(), NLSOUND::CSimpleSource::setVelocity(), NLSOUND::CSimpleSource::stop(), and ~CTrack(). |