diff options
Diffstat (limited to 'pica-client')
| -rw-r--r-- | pica-client/sound.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/pica-client/sound.cpp b/pica-client/sound.cpp index f7cc81c..3762c0e 100644 --- a/pica-client/sound.cpp +++ b/pica-client/sound.cpp @@ -29,9 +29,13 @@ void Sound::play(const QString sndfile) if (is_muted) return; -#ifndef WIN32 +#if defined(__gnu_linux__) QProcess::execute("aplay -q " + sndfile); -#else +#endif +#if defined(WIN32) sndPlaySound(sndfile.toAscii().constData(), SND_ASYNC | SND_NODEFAULT); #endif +#if defined(__APPLE__) + QProcess::execute("/usr/bin/afplay " + sndfile); +#endif } |
