Front-end music with independent CD resources and the shared native XM player.
More...
#include <racemusic.h>
Front-end music with independent CD resources and the shared native XM player.
◆ FrontEndMusic() [1/2]
Prepare front-end playback without starting music.
- Parameters
-
| audio | The shared XM player, whose lifetime must exceed this music controller's. |
| directory | The directory with menu.xm and converted CD tracks. |
| source | The preferred menu music source, with XM fallback for unavailable CD audio. |
◆ ~FrontEndMusic()
| coastline::FrontEndMusic::~FrontEndMusic |
( |
| ) |
|
Stop shared XM playback and release independent CD resources.
◆ FrontEndMusic() [2/2]
| coastline::FrontEndMusic::FrontEndMusic |
( |
const FrontEndMusic & | | ) |
|
|
delete |
Prevent copying playback control and CD resources.
◆ operator=()
Prevent assignment of playback control and CD resources.
◆ Play()
| bool coastline::FrontEndMusic::Play |
( |
| ) |
|
Start menu music, or use XM with a warning when CD audio is unavailable.
- Returns
- Whether CD playback starts or the XM module can be read and submitted.
◆ Stop()
| void coastline::FrontEndMusic::Stop |
( |
| ) |
|
Stop front-end music before starting a race.
◆ SetVolume()
| void coastline::FrontEndMusic::SetVolume |
( |
unsigned char | volume | ) |
|
Apply the menu BGM volume to the CD stream.
- Parameters
-
| volume | The console BGM volume, from 0 through 48, with 0 suspending CD processing. |
◆ SetSource()
Stop the previous source before selecting menu music again.
- Parameters
-
| source | The replacement preference; an unchanged source does not restart playback. |
The documentation for this class was generated from the following file: