CDXA not working
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
#include "Overlay/Overlays.hpp"
|
||||
#include <FontWriter/fonts.hpp>
|
||||
#include <FontWriter/font_writer.hpp>
|
||||
#include <PSX/Audio/CDDA.hpp>
|
||||
//#include <PSX/Audio/CDDA.hpp>
|
||||
#include <PSX/Periphery/periphery.hpp>
|
||||
#include <PSX/System/callbacks.hpp>
|
||||
#include <stdio.hpp>
|
||||
@@ -105,8 +105,11 @@ static void setup() {
|
||||
}
|
||||
},MenuEntries);
|
||||
|
||||
const auto [first_track, last_track] = CDDA::get_tracks();
|
||||
CDDA::play(first_track);
|
||||
// TODO: CDDA?
|
||||
// const auto [first_track, last_track] = CDDA::get_tracks();
|
||||
// CDDA::play(first_track);
|
||||
|
||||
Assets::XAAudio::play_fox();
|
||||
}
|
||||
|
||||
namespace NormalScene {
|
||||
@@ -158,6 +161,7 @@ namespace LoadingScene {
|
||||
printf("Loading new state...\n");
|
||||
|
||||
Callback::VSyncCallback::install([]() {
|
||||
// TODO: Use it or remove it!!
|
||||
printf("Still loading...\n");
|
||||
});
|
||||
|
||||
@@ -166,10 +170,11 @@ namespace LoadingScene {
|
||||
render();
|
||||
GPU::swap_buffers_vsync(1);
|
||||
|
||||
CDDA::push_play();
|
||||
// TODO: Enable push and pop
|
||||
//CDDA::push_play();
|
||||
state_changer.asset_load();
|
||||
old_state_changer = state_changer;
|
||||
CDDA::pop_play();
|
||||
//CDDA::pop_play();
|
||||
Callback::VSyncCallback::uninstall();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user