summaryrefslogtreecommitdiffstats
path: root/pica-client/sound.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'pica-client/sound.cpp')
-rw-r--r--pica-client/sound.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/pica-client/sound.cpp b/pica-client/sound.cpp
index 3762c0e..0db4521 100644
--- a/pica-client/sound.cpp
+++ b/pica-client/sound.cpp
@@ -21,19 +21,19 @@ Sound::Sound()
void Sound::mute(bool yes)
{
- is_muted = yes;
+ is_muted = yes;
}
void Sound::play(const QString sndfile)
{
- if (is_muted)
- return;
+ if (is_muted)
+ return;
#if defined(__gnu_linux__)
- QProcess::execute("aplay -q " + sndfile);
+ QProcess::execute("aplay -q " + sndfile);
#endif
#if defined(WIN32)
- sndPlaySound(sndfile.toAscii().constData(), SND_ASYNC | SND_NODEFAULT);
+ sndPlaySound(sndfile.toAscii().constData(), SND_ASYNC | SND_NODEFAULT);
#endif
#if defined(__APPLE__)
QProcess::execute("/usr/bin/afplay " + sndfile);