Play CDDA track

This commit is contained in:
2024-05-05 22:12:23 +02:00
parent 01622fd5d6
commit f91a7b470c
9 changed files with 80 additions and 3 deletions

View File

@@ -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;

View File

@@ -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>