#include <pcbPlayer.h>
Inheritance diagram for pcbPlayer
Public Methods | |||
pcbPlayer () | |||
constructors and destructors. | |||
pcbPlayer (pp::Audio* driver) | |||
virtual | ~pcbPlayer () | ||
virtual void | Play (bool fRestart = true) | ||
virtual void | Stop () | ||
virtual void | Pause () | ||
kill the child if the player has been forked if the player is a thread then if its not been paused already set the pause flag and stop it. | |||
virtual void | Unpause () | ||
kill the child if the player has been forked if the player is a thread then if its not been paused already set the pause flag and stop it. | |||
void | TogglePause () | ||
void | NextPattern () | ||
This is really dodgy and only works for the threaded version. It simply set the value of the row to the end. The player thread in PlayPattern should find that it is on the last row and update the order. | |||
void | PrevPattern () | ||
This set the row to the end and changes the order to the previous one. This is really dodgy and only works for the threaded version. | |||
void | SetOrder (int order) | ||
void | SetRow (int row) | ||
bool | SetMod (pcbModule* new_mod) | ||
Assign a new module for the player to play Need to free all the previous samples from the audio device and then allocate the new samples. | |||
void | SetBpm (int bpm) | ||
bpm should be greater than 32. | |||
void | SetSpeed (int speed) | ||
void | SetGlobalVolume (int gv) | ||
| |||
void | SetRate (int rate) | ||
void | SetStereo (bool stereo) | ||
void | SetBits (int bits) | ||
This gives access to the audio::set_bits member. | |||
void | SetInterpolate (bool value) | ||
Set whether we should interpolate samples or not. | |||
void | SetRepeat (bool repeat) | ||
void | SetDriver (pp::Audio* driver) | ||
pp::Audio* | GetDriver () | ||
unsigned char | GetBpm () const | ||
unsigned char | GetSpeed () const | ||
pcbModule* | GetMod () const | ||
bool | GetInterpolate () const | ||
int | GetRate () const | ||
int | GetBits () const | ||
int | GetChannels () const | ||
const char* | GetName () const | ||
int | GetLength () const | ||
int | GetRow () const | ||
int | GetGlobalVolume () const | ||
bool | IsStereo () const | ||
bool | IsPaused () const | ||
bool | Finished () const | ||
void | SetFinished (bool finished) | ||
int | GetOrder () const | ||
int | GetPattern () const | ||
void | SetThreaded (bool threaded=true) | ||
bool | IsThreaded () const | ||
bool | ChildHasStarted () const | ||
bool | IsPlaying () const | ||
void | ChildsPlay () | ||
void | SetObserver (Observer* observer) | ||
Observer (bool FinishAtEnd = false) | |||
virtual | ~Observer () | ||
virtual void | CallbackOrder (int order) | ||
virtual void | CallbackRow (int row) | ||
virtual void | CallbackBpm (int bpm) | ||
virtual void | CallbackSpeed (int speed) | ||
virtual void | CallbackGv (int volume) | ||
virtual void | CallbackEnd () | ||
virtual void | CallbackChVolume (int ch) | ||
virtual void | CallbackChPanning (int ch) | ||
virtual void | CallbackChNote (int ch) | ||
virtual void | CallbackChSmp (int ch) | ||
virtual void | CallbackChInst (int ch) | ||
virtual void | CallbackError (const char *msg) | ||
bool | FinishAtEnd () const | ||
void | SetFinishAtEnd (bool finish) | ||
Public Attributes | |||
class PP_EXPORT | Observer | ||
Protected Methods | |||
void | MixChannels () | ||
Apply each channel's changes for this tick. |