Browse Source

Fixes for audio on Linux

QGC4.4
pixhawk 15 years ago
parent
commit
03f3b2113a
  1. 4
      mavground.pri
  2. 9
      src/GAudioOutput.cc
  3. 2
      src/lib/qwt/qwt.pri

4
mavground.pri

@ -63,8 +63,8 @@ macx { @@ -63,8 +63,8 @@ macx {
message(Building for Mac OS X 32/64bit)
#CONFIG += x86
CONFIG += x86_64 cocoa
CONFIG += x86 cocoa
#CONFIG += x86_64 cocoa
CONFIG -= static
DESTDIR = $$BASEDIR/bin/mac

9
src/GAudioOutput.cc

@ -48,7 +48,8 @@ using System.Speech.Synthesis; @@ -48,7 +48,8 @@ using System.Speech.Synthesis;
#ifdef Q_OS_LINUX
extern "C" {
#include <cmu_us_awb/voxdefs.h>
#include <flite.h>
#include <cmu_us_awb/voxdefs.h>
//#include <cmu_us_slt/voxdefs.h>
//cst_voice *REGISTER_VOX(const char *voxdir);
//void UNREGISTER_VOX(cst_voice *vox);
@ -222,14 +223,14 @@ void GAudioOutput::beep() @@ -222,14 +223,14 @@ void GAudioOutput::beep()
void GAudioOutput::selectFemaleVoice()
{
#ifdef Q_OS_LINUX
this->voice = register_cmu_us_slt(NULL);
//this->voice = register_cmu_us_slt(NULL);
#endif
}
void GAudioOutput::selectMaleVoice()
{
#ifdef Q_OS_LINUX
this->voice = register_cmu_us_rms(NULL);
//this->voice = register_cmu_us_rms(NULL);
#endif
}
@ -237,7 +238,7 @@ void GAudioOutput::selectMaleVoice() @@ -237,7 +238,7 @@ void GAudioOutput::selectMaleVoice()
void GAudioOutput::selectNeutralVoice()
{
#ifdef Q_OS_LINUX
this->voice = register_cmu_us_awb(NULL);
//this->voice = register_cmu_us_awb(NULL);
#endif
}

2
src/lib/qwt/qwt.pri

@ -77,7 +77,7 @@ HEADERS += $$QWTSRCDIR/qwt.h \ @@ -77,7 +77,7 @@ HEADERS += $$QWTSRCDIR/qwt.h \
$$QWTSRCDIR/qwt_thermo.h \
$$QWTSRCDIR/qwt_valuelist.h \
$$QWTSRCDIR/qwt_wheel.h
SOURCES += qwt_abstract_scale.cpp \
SOURCES += $$QWTSRCDIR/qwt_abstract_scale.cpp \
$$QWTSRCDIR/qwt_abstract_scale_draw.cpp \
$$QWTSRCDIR/qwt_abstract_slider.cpp \
$$QWTSRCDIR/qwt_analog_clock.cpp \

Loading…
Cancel
Save