Play CDDA track
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include "include/menu.hpp"
|
||||
#include <PSX/Audio/CDDA.hpp>
|
||||
#include <PSX/Periphery/periphery.hpp>
|
||||
|
||||
namespace Menu {
|
||||
@@ -41,6 +42,9 @@ namespace Menu {
|
||||
}
|
||||
|
||||
void BackMenu :: setup(JabyEngine::FontWriter* font_writer) {
|
||||
const auto [first_track, last_track] = CDDA::get_tracks();
|
||||
CDDA::play(first_track);
|
||||
|
||||
this->font_writer = font_writer;
|
||||
this->timeout.reset();
|
||||
this->waiting = false;
|
||||
|
@@ -33,4 +33,5 @@
|
||||
</Directory>
|
||||
</Track>
|
||||
<CD_Audio>../assets/audio/Evacuation_cdda.wav</CD_Audio>
|
||||
<CD_Audio>../assets/audio/Evacuation_cdda.wav</CD_Audio>
|
||||
</ISO_Project>
|
Reference in New Issue
Block a user