mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 08:36:52 +08:00
Some cleanup
* removed audio utils from blackmiscfreefunctions (we wanna give it up) * comments * formatting
This commit is contained in:
25
src/blackmisc/audio/audioutils.cpp
Normal file
25
src/blackmisc/audio/audioutils.cpp
Normal file
@@ -0,0 +1,25 @@
|
||||
/* Copyright (C) 2013
|
||||
* swift project Community / Contributors
|
||||
*
|
||||
* This file is part of swift project. It is subject to the license terms in the LICENSE file found in the top-level
|
||||
* directory of this distribution and at http://www.swift-project.org/license.html. No part of swift project,
|
||||
* including this file, may be copied, modified, propagated, or distributed except according to the terms
|
||||
* contained in the LICENSE file.
|
||||
*/
|
||||
|
||||
#include "audioutils.h"
|
||||
#include "blackmisc/project.h"
|
||||
#include <QProcess>
|
||||
|
||||
namespace BlackMisc
|
||||
{
|
||||
namespace Audio
|
||||
{
|
||||
bool startWindowsMixer()
|
||||
{
|
||||
if (!CProject::isRunningOnWindowsNtPlatform()) { return false; }
|
||||
QStringList parameterlist;
|
||||
return QProcess::startDetached("SndVol.exe", parameterlist);
|
||||
}
|
||||
} // ns
|
||||
} // ns
|
||||
Reference in New Issue
Block a user