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

Move audio file to resource

parent 4d033715
......@@ -77,6 +77,7 @@ void QGCAudioWorker::init()
// Prepare regular emergency signal, will be fired off on calling startEmergency()
emergencyTimer = new QTimer();
connect(emergencyTimer, SIGNAL(timeout()), this, SLOT(beep()));
}
QGCAudioWorker::~QGCAudioWorker()
......@@ -149,9 +150,7 @@ void QGCAudioWorker::beep()
if (!muted)
{
// Use QFile to transform path for all OS
QFile f(QCoreApplication::applicationDirPath() + QString("/files/audio/alert.wav"));
sound->play(f.fileName());
sound->play(":/files/audio/alert.wav");
}
}
......
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