Commit 0e67aae1 authored by Lorenz Meier's avatar Lorenz Meier

Move audio file to resource

parent 4d033715
...@@ -77,6 +77,7 @@ void QGCAudioWorker::init() ...@@ -77,6 +77,7 @@ void QGCAudioWorker::init()
// Prepare regular emergency signal, will be fired off on calling startEmergency() // Prepare regular emergency signal, will be fired off on calling startEmergency()
emergencyTimer = new QTimer(); emergencyTimer = new QTimer();
connect(emergencyTimer, SIGNAL(timeout()), this, SLOT(beep())); connect(emergencyTimer, SIGNAL(timeout()), this, SLOT(beep()));
} }
QGCAudioWorker::~QGCAudioWorker() QGCAudioWorker::~QGCAudioWorker()
...@@ -149,9 +150,7 @@ void QGCAudioWorker::beep() ...@@ -149,9 +150,7 @@ void QGCAudioWorker::beep()
if (!muted) if (!muted)
{ {
// Use QFile to transform path for all OS sound->play(":/files/audio/alert.wav");
QFile f(QCoreApplication::applicationDirPath() + QString("/files/audio/alert.wav"));
sound->play(f.fileName());
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment