From 8e9c33f22221c494bad8b73d3e52c159786c6414 Mon Sep 17 00:00:00 2001 From: victor Date: Fri, 30 Jun 2017 11:33:37 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9D=8C=ED=96=A5=20=ED=9A=A8=EA=B3=BC?= =?UTF-8?q?=EB=A5=BC=20=EC=A4=91=EB=8B=A8=ED=95=A0=20=EB=95=8C=20=EC=9D=8C?= =?UTF-8?q?=ED=96=A5=EC=9D=B4=20=EA=B9=A8=EC=A7=80=EB=8A=94=20=EB=AC=B8?= =?UTF-8?q?=EC=A0=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/gui/oven_control/soundplayer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/gui/oven_control/soundplayer.cpp b/app/gui/oven_control/soundplayer.cpp index 67bf6c5..b18eee7 100644 --- a/app/gui/oven_control/soundplayer.cpp +++ b/app/gui/oven_control/soundplayer.cpp @@ -20,10 +20,12 @@ void SoundPlayWorker::play(const QString &filename) { if (proc->state() != QProcess::NotRunning) { + system("amixer -c 0 sset 'Headphone' off"); proc->terminate(); proc->waitForFinished(); } + system("amixer -c 0 sset 'Headphone' on"); proc->start(QString("aplay"), QStringList(filename)); proc->waitForStarted(); } -- 2.1.4