Commit 8e9c33f22221c494bad8b73d3e52c159786c6414
1 parent
8cf2c5fc5b
Exists in
master
and in
2 other branches
음향 효과를 중단할 때 음향이 깨지는 문제 수정
Showing
1 changed file
with
2 additions
and
0 deletions
Show diff stats
app/gui/oven_control/soundplayer.cpp
| ... | ... | @@ -20,10 +20,12 @@ void SoundPlayWorker::play(const QString &filename) |
| 20 | 20 | { |
| 21 | 21 | if (proc->state() != QProcess::NotRunning) |
| 22 | 22 | { |
| 23 | + system("amixer -c 0 sset 'Headphone' off"); | |
| 23 | 24 | proc->terminate(); |
| 24 | 25 | proc->waitForFinished(); |
| 25 | 26 | } |
| 26 | 27 | |
| 28 | + system("amixer -c 0 sset 'Headphone' on"); | |
| 27 | 29 | proc->start(QString("aplay"), QStringList(filename)); |
| 28 | 30 | proc->waitForStarted(); |
| 29 | 31 | } | ... | ... |