forked from jaildesigner-jailgames/jaildoctors_dilemma
eliminats metodes deprecated
migracions finals a time based migracions de jail_audio a Audio
This commit is contained in:
@@ -89,13 +89,20 @@ void Audio::stopMusic() {
|
||||
}
|
||||
}
|
||||
|
||||
// Reproduce un sonido
|
||||
// Reproduce un sonido por nombre
|
||||
void Audio::playSound(const std::string& name, Group group) const {
|
||||
if (sound_enabled_) {
|
||||
JA_PlaySound(Resource::get()->getSound(name), 0, static_cast<int>(group));
|
||||
}
|
||||
}
|
||||
|
||||
// Reproduce un sonido por puntero directo
|
||||
void Audio::playSound(JA_Sound_t* sound, Group group) const {
|
||||
if (sound_enabled_) {
|
||||
JA_PlaySound(sound, 0, static_cast<int>(group));
|
||||
}
|
||||
}
|
||||
|
||||
// Detiene todos los sonidos
|
||||
void Audio::stopAllSounds() const {
|
||||
if (sound_enabled_) {
|
||||
|
||||
Reference in New Issue
Block a user