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
a20b2b18
Commit
a20b2b18
authored
Mar 29, 2014
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fill in missing struct members instead of pragma
parent
51098eaf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
GAudioOutput.cc
src/GAudioOutput.cc
+3
-5
No files found.
src/GAudioOutput.cc
View file @
a20b2b18
...
...
@@ -97,14 +97,12 @@ GAudioOutput::GAudioOutput(QObject *parent) : QObject(parent),
#if defined Q_OS_LINUX && defined QGC_SPEECH_ENABLED
espeak_Initialize
(
AUDIO_OUTPUT_PLAYBACK
,
500
,
NULL
,
0
);
// initialize for playback with 500ms buffer and no options (see speak_lib.h)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
// Even though the following is legal, GCC still complains about it
espeak_VOICE
espeak_voice
=
{};
#pragma GCC diagnostic pop
espeak_VOICE
espeak_voice
;
espeak_voice
.
languages
=
"en-uk"
;
// Default to British English
espeak_voice
.
identifier
=
NULL
;
// no specific voice file specified
espeak_voice
.
name
=
"klatt"
;
// espeak voice name
espeak_voice
.
gender
=
2
;
// Female
espeak_voice
.
age
=
0
;
// age not specified
espeak_SetVoiceByProperties
(
&
espeak_voice
);
#endif
...
...
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