sfx glitch
This commit is contained in:
parent
bdde8822f4
commit
44d433d941
@ -79,12 +79,15 @@ void AOSfxPlayer::play(QString p_sfx, QString p_char, QString shout)
|
|||||||
else
|
else
|
||||||
f_path = sound_path;
|
f_path = sound_path;
|
||||||
|
|
||||||
|
if (file_exists(f_path)) //if its missing, it will glitch out
|
||||||
|
{
|
||||||
m_sfx.setSource(QUrl::fromLocalFile(f_path));
|
m_sfx.setSource(QUrl::fromLocalFile(f_path));
|
||||||
|
|
||||||
set_volume(m_volume);
|
set_volume(m_volume);
|
||||||
|
|
||||||
m_sfx.play();
|
m_sfx.play();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void AOSfxPlayer::stop()
|
void AOSfxPlayer::stop()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user