treballant en la classe Audio
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
#include <SDL3/SDL_surface.h> // Para SDL_FlipMode
|
||||
#include <algorithm> // Para max
|
||||
#include "animated_sprite.h" // Para AnimatedSprite
|
||||
#include "jail_audio.h" // Para JA_PlaySound
|
||||
#include "audio.h" // Para JA_PlaySound
|
||||
#include "param.h" // Para Param, param, ParamGame, ParamTitle
|
||||
#include "resource.h" // Para Resource
|
||||
#include "screen.h" // Para Screen
|
||||
@@ -123,7 +123,7 @@ void GameLogo::update()
|
||||
coffee_crisis_status_ = Status::SHAKING;
|
||||
|
||||
// Reproduce el efecto sonoro
|
||||
JA_PlaySound(Resource::get()->getSound("title.wav"));
|
||||
Audio::get()->playSound("title.wav");
|
||||
Screen::get()->flash(Color(0xFF, 0xFF, 0xFF), FLASH_LENGHT, FLASH_DELAY);
|
||||
Screen::get()->shake();
|
||||
}
|
||||
@@ -187,7 +187,7 @@ void GameLogo::update()
|
||||
zoom_ = 1.0f;
|
||||
arcade_edition_sprite_->setZoom(zoom_);
|
||||
shake_.init(1, 2, 8, arcade_edition_sprite_->getX());
|
||||
JA_PlaySound(Resource::get()->getSound("title.wav"));
|
||||
Audio::get()->playSound("title.wav");
|
||||
Screen::get()->flash(Color(0xFF, 0xFF, 0xFF), FLASH_LENGHT, FLASH_DELAY);
|
||||
Screen::get()->shake();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user