summaryrefslogtreecommitdiffstats
path: root/pica-client/sound.cpp
diff options
context:
space:
mode:
authorAnton <anton@picapica>2017-12-01 22:16:24 +0400
committerAnton <anton@picapica>2017-12-01 22:16:24 +0400
commit0f726c30f5f11990d325bc5e55015c42c80cd9d2 (patch)
treef8c9b83cc440dd3a2f43285dc35199435f6e2701 /pica-client/sound.cpp
parentac041927bc0c82e33acaa9e15fd46ecca0b77172 (diff)
downloadpica-pica-0f726c30f5f11990d325bc5e55015c42c80cd9d2.tar.gz
pica-pica-0f726c30f5f11990d325bc5e55015c42c80cd9d2.zip
fixed code style on all source files (*.c *.cpp *.h) using astyle --style=allman --lineend=linux --indent=tab --pad-oper
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);