treballant en la classe Audio
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
#include <array> // Para array
|
||||
#include "animated_sprite.h" // Para AnimatedSprite
|
||||
#include "input.h" // Para InputAction
|
||||
#include "jail_audio.h" // Para JA_PlaySound
|
||||
#include "audio.h" // Para JA_PlaySound
|
||||
#include "param.h" // Para Param, ParamGame, param
|
||||
#include "resource.h" // Para Resource
|
||||
#include "scoreboard.h" // Para Scoreboard, ScoreboardMode
|
||||
@@ -221,7 +221,7 @@ void Player::move()
|
||||
++step_counter_;
|
||||
if (step_counter_ % 10 == 0)
|
||||
{
|
||||
JA_PlaySound(Resource::get()->getSound("walk.wav"));
|
||||
Audio::get()->playSound("walk.wav");
|
||||
}
|
||||
|
||||
switch (id_)
|
||||
@@ -252,7 +252,7 @@ void Player::move()
|
||||
++step_counter_;
|
||||
if (step_counter_ % 10 == 0)
|
||||
{
|
||||
JA_PlaySound(Resource::get()->getSound("walk.wav"));
|
||||
Audio::get()->playSound("walk.wav");
|
||||
}
|
||||
|
||||
switch (id_)
|
||||
@@ -752,7 +752,7 @@ void Player::decContinueCounter()
|
||||
}
|
||||
else
|
||||
{
|
||||
JA_PlaySound(Resource::get()->getSound("continue_clock.wav"));
|
||||
Audio::get()->playSound("continue_clock.wav");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -798,5 +798,5 @@ void Player::shiftSprite()
|
||||
void Player::playRandomBubbleSound()
|
||||
{
|
||||
const std::vector<std::string> sounds = {"bubble1.wav", "bubble2.wav", "bubble3.wav", "bubble4.wav"};
|
||||
JA_PlaySound(Resource::get()->getSound(sounds.at(rand() % sounds.size())));
|
||||
Audio::get()->playSound(sounds.at(rand() % sounds.size()));
|
||||
}
|
||||
Reference in New Issue
Block a user