aboutsummaryrefslogtreecommitdiff
path: root/aosfxplayer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'aosfxplayer.cpp')
-rw-r--r--aosfxplayer.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/aosfxplayer.cpp b/aosfxplayer.cpp
index 65da6867..c6161218 100644
--- a/aosfxplayer.cpp
+++ b/aosfxplayer.cpp
@@ -9,8 +9,6 @@ AOSfxPlayer::AOSfxPlayer(QWidget *parent, AOApplication *p_ao_app)
void AOSfxPlayer::play(QString p_sfx, QString p_char, QString shout)
{
- BASS_ChannelStop(m_stream);
-
p_sfx = p_sfx.toLower();
QString misc_path = "";
@@ -31,8 +29,6 @@ void AOSfxPlayer::play(QString p_sfx, QString p_char, QString shout)
else
f_path = sound_path;
- m_stream = BASS_StreamCreateFile(FALSE, f_path.utf16(), 0, 0, BASS_STREAM_AUTOFREE | BASS_UNICODE | BASS_ASYNCFILE);
-
set_volume(m_volume);
if (ao_app->get_audio_output_device() != "Default")
@@ -48,9 +44,6 @@ void AOSfxPlayer::stop()
void AOSfxPlayer::set_volume(int p_value)
{
m_volume = p_value;
-
float volume = p_value / 100.0f;
-
BASS_ChannelSetAttribute(m_stream, BASS_ATTRIB_VOL, volume);
-
}