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
3385b837
Commit
3385b837
authored
Apr 09, 2010
by
lm
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of git@pixhawk.ethz.ch:groundcontrol
parents
9c256d6e
cac60218
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
9 deletions
+17
-9
GAudioOutput.cc
src/GAudioOutput.cc
+6
-8
GAudioOutput.h
src/GAudioOutput.h
+11
-1
No files found.
src/GAudioOutput.cc
View file @
3385b837
...
...
@@ -36,10 +36,7 @@ This file is part of the PIXHAWK project
#ifdef Q_OS_MAC
#include <ApplicationServices/ApplicationServices.h>
#endif
#ifdef Q_OS_LINUX
#include <flite.h>
#endif
#include <Phonon>
#include <QTemporaryFile>
#include <QDebug>
...
...
@@ -79,7 +76,9 @@ GAudioOutput* GAudioOutput::instance()
}
GAudioOutput
::
GAudioOutput
(
QObject
*
parent
)
:
QObject
(
parent
),
#ifdef Q_OS_LINUX
voice
(
NULL
),
#endif
voiceIndex
(
0
),
emergency
(
false
)
{
...
...
@@ -236,13 +235,12 @@ extern "C" {
#endif
/* __cplusplus */
QStringList
GAudioOutput
::
listVoices
(
void
)
{
QStringList
l
;
#ifdef Q_OS_LINUX
cst_voice
*
voice
;
const
cst_val
*
v
;
QStringList
l
;
#ifndef _WIN32
/*
printf("Voices available: ");
for (v=flite_voice_list; v; v=val_cdr(v))
...
...
src/GAudioOutput.h
View file @
3385b837
...
...
@@ -35,8 +35,16 @@ This file is part of the PIXHAWK project
#include <QObject>
#include <QTimer>
#include <QStringList>
#ifdef Q_OS_MAC
#include <Phonon>
#endif
#ifdef Q_OS_LINUX
#include <flite.h>
#include <phonon>
#endif
#ifdef Q_OS_WIN
#include <Phonon>
#endif
/* For Snow leopard and later
#ifdef Q_OS_MAC
...
...
@@ -77,10 +85,12 @@ public slots:
void
beep
();
protected:
#ifdef Q_OS_MAC
#ifdef Q_OS_MAC
//NSSpeechSynthesizer
#endif
#ifdef Q_OS_LINUX
cst_voice
*
voice
;
///< The flite voice object
#endif
int
voiceIndex
;
///< The index of the flite voice to use (awb, slt, rms)
Phonon
::
MediaObject
*
m_media
;
///< The output object for audio
Phonon
::
AudioOutput
*
m_audioOutput
;
...
...
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