Commit 03f3b211 authored by pixhawk's avatar pixhawk

Fixes for audio on Linux

parent 1b380af8
...@@ -63,8 +63,8 @@ macx { ...@@ -63,8 +63,8 @@ macx {
message(Building for Mac OS X 32/64bit) message(Building for Mac OS X 32/64bit)
#CONFIG += x86 CONFIG += x86 cocoa
CONFIG += x86_64 cocoa #CONFIG += x86_64 cocoa
CONFIG -= static CONFIG -= static
DESTDIR = $$BASEDIR/bin/mac DESTDIR = $$BASEDIR/bin/mac
......
...@@ -48,7 +48,8 @@ using System.Speech.Synthesis; ...@@ -48,7 +48,8 @@ using System.Speech.Synthesis;
#ifdef Q_OS_LINUX #ifdef Q_OS_LINUX
extern "C" { extern "C" {
#include <cmu_us_awb/voxdefs.h> #include <flite.h>
#include <cmu_us_awb/voxdefs.h>
//#include <cmu_us_slt/voxdefs.h> //#include <cmu_us_slt/voxdefs.h>
//cst_voice *REGISTER_VOX(const char *voxdir); //cst_voice *REGISTER_VOX(const char *voxdir);
//void UNREGISTER_VOX(cst_voice *vox); //void UNREGISTER_VOX(cst_voice *vox);
...@@ -222,14 +223,14 @@ void GAudioOutput::beep() ...@@ -222,14 +223,14 @@ void GAudioOutput::beep()
void GAudioOutput::selectFemaleVoice() void GAudioOutput::selectFemaleVoice()
{ {
#ifdef Q_OS_LINUX #ifdef Q_OS_LINUX
this->voice = register_cmu_us_slt(NULL); //this->voice = register_cmu_us_slt(NULL);
#endif #endif
} }
void GAudioOutput::selectMaleVoice() void GAudioOutput::selectMaleVoice()
{ {
#ifdef Q_OS_LINUX #ifdef Q_OS_LINUX
this->voice = register_cmu_us_rms(NULL); //this->voice = register_cmu_us_rms(NULL);
#endif #endif
} }
...@@ -237,7 +238,7 @@ void GAudioOutput::selectMaleVoice() ...@@ -237,7 +238,7 @@ void GAudioOutput::selectMaleVoice()
void GAudioOutput::selectNeutralVoice() void GAudioOutput::selectNeutralVoice()
{ {
#ifdef Q_OS_LINUX #ifdef Q_OS_LINUX
this->voice = register_cmu_us_awb(NULL); //this->voice = register_cmu_us_awb(NULL);
#endif #endif
} }
......
...@@ -77,7 +77,7 @@ HEADERS += $$QWTSRCDIR/qwt.h \ ...@@ -77,7 +77,7 @@ HEADERS += $$QWTSRCDIR/qwt.h \
$$QWTSRCDIR/qwt_thermo.h \ $$QWTSRCDIR/qwt_thermo.h \
$$QWTSRCDIR/qwt_valuelist.h \ $$QWTSRCDIR/qwt_valuelist.h \
$$QWTSRCDIR/qwt_wheel.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_scale_draw.cpp \
$$QWTSRCDIR/qwt_abstract_slider.cpp \ $$QWTSRCDIR/qwt_abstract_slider.cpp \
$$QWTSRCDIR/qwt_analog_clock.cpp \ $$QWTSRCDIR/qwt_analog_clock.cpp \
......
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