|
wavelength 1.0.0
|
Player that repeats a piece of music over a fixed number of ticks. More...
#include <muselooper.h>

Classes | |
| class | RepeatCmd |
| Command that restarts the piece of a looper at the end of each loop. More... | |
Public Member Functions | |
| MuseLooper (Muse *pMuse, int nLength) | |
| Construct a stopped looper. | |
| ~MuseLooper () | |
| Stop the piece and release it. | |
| void | Play (Scheduler *pScheduler, int nPosition) |
| Start the piece at a position of the loop on a scheduler, stopping it first. | |
| void | Stop () |
| Stop the piece and withdraw the repeat. | |
| bool | IsPlaying () const |
| Report whether the piece plays. | |
| int | GetLength () const |
| Report the ticks of one loop. | |
| int | GetPosition () const |
| Report the position of the scheduler in the current loop. | |
Player that repeats a piece of music over a fixed number of ticks.
The RTTI includes the class name. The class is not polymorphic. Its nested command MuseLooper::RepeatCmd restarts the piece each time a loop ends.
| MuseLooper::MuseLooper | ( | Muse * | pMuse, |
| int | nLength ) |
Construct a stopped looper.
| pMuse | The piece. |
| nLength | The ticks of one loop. |
| MuseLooper::~MuseLooper | ( | ) |
Stop the piece and release it.
| void MuseLooper::Play | ( | Scheduler * | pScheduler, |
| int | nPosition ) |
Start the piece at a position of the loop on a scheduler, stopping it first.
| pScheduler | The scheduler. |
| nPosition | The position, taken modulo the length of the loop. |
| void MuseLooper::Stop | ( | ) |
Stop the piece and withdraw the repeat.
| bool MuseLooper::IsPlaying | ( | ) | const |
Report whether the piece plays.
| int MuseLooper::GetLength | ( | ) | const |
Report the ticks of one loop.
| int MuseLooper::GetPosition | ( | ) | const |
Report the position of the scheduler in the current loop.