treballant en la classe Audio

This commit is contained in:
2025-03-28 23:27:33 +01:00
parent 31a0ad6fd5
commit d2417f48d9
29 changed files with 321 additions and 253 deletions

View File

@@ -11,7 +11,7 @@
#include <utility> // Para move
#include "global_events.h" // Para check
#include "global_inputs.h" // Para check, update
#include "jail_audio.h" // Para JA_PlayMusic, JA_StopMusic
#include "audio.h" // Para JA_PlayMusic, JA_StopMusic
#include "lang.h" // Para getText
#include "param.h" // Para Param, ParamGame, param
#include "path_sprite.h" // Para PathSprite, PathType
@@ -284,7 +284,7 @@ void Intro::render()
// Bucle principal
void Intro::run()
{
JA_PlayMusic(Resource::get()->getMusic("intro.ogg"), 0);
Audio::get()->playMusic("intro.ogg", 0);
while (section::name == section::Name::INTRO)
{
checkInput();
@@ -516,7 +516,7 @@ void Intro::updatePostState()
// Finaliza la intro después de 1 segundo
if (ELAPSED_TIME >= 1000)
{
JA_StopMusic();
Audio::get()->stopMusic();
section::name = section::Name::TITLE;
section::options = section::Options::TITLE_1;
}