normalitzat Audio

This commit is contained in:
2026-04-18 11:42:29 +02:00
parent 34a41ad25c
commit 6246b5d89d
17 changed files with 740 additions and 233 deletions

View File

@@ -5,7 +5,7 @@
#include <algorithm> // for min
#include <string> // for basic_string
#include "core/audio/jail_audio.hpp" // for JA_StopMusic
#include "core/audio/audio.hpp" // for Audio::get, Audio::update
#include "core/input/global_inputs.hpp" // for GlobalInputs::handle
#include "core/input/input.h" // for Input, REPEAT_FALSE, inputs_e
#include "core/rendering/screen.h" // for Screen
@@ -38,7 +38,7 @@ Logo::Logo(SDL_Renderer *renderer, section_t *section) {
ticks = 0;
ticksSpeed = 15;
JA_StopMusic();
Audio::get()->stopMusic();
}
// Destructor
@@ -85,7 +85,7 @@ void Logo::renderFade() {
// Actualiza las variables del objeto
void Logo::update() {
JA_Update();
Audio::update();
checkInput();
if (SDL_GetTicks() - ticks > ticksSpeed) {
@@ -120,7 +120,7 @@ void Logo::render() {
// Bucle para el logo del juego
void Logo::run() {
JA_StopMusic();
Audio::get()->stopMusic();
while (section->name == SECTION_PROG_LOGO) {
iterate();