Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
03f3b211
Commit
03f3b211
authored
Apr 11, 2010
by
pixhawk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes for audio on Linux
parent
1b380af8
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
7 deletions
+8
-7
mavground.pri
mavground.pri
+2
-2
GAudioOutput.cc
src/GAudioOutput.cc
+5
-4
qwt.pri
src/lib/qwt/qwt.pri
+1
-1
No files found.
mavground.pri
View file @
03f3b211
...
...
@@ -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
...
...
src/GAudioOutput.cc
View file @
03f3b211
...
...
@@ -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()
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()
void
GAudioOutput
::
selectNeutralVoice
()
{
#ifdef Q_OS_LINUX
this
->
voice
=
register_cmu_us_awb
(
NULL
);
//
this->voice = register_cmu_us_awb(NULL);
#endif
}
...
...
src/lib/qwt/qwt.pri
View file @
03f3b211
...
...
@@ -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 \
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment