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
30e9ca4a
Commit
30e9ca4a
authored
Jul 06, 2014
by
Lorenz Meier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Build fixes for Mac OS
parent
a98944a4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
GAudioOutput.cc
src/GAudioOutput.cc
+1
-1
GAudioOutput.h
src/GAudioOutput.h
+2
-2
No files found.
src/GAudioOutput.cc
View file @
30e9ca4a
...
@@ -221,7 +221,7 @@ bool GAudioOutput::say(QString text, int severity)
...
@@ -221,7 +221,7 @@ bool GAudioOutput::say(QString text, int severity)
// Slashes necessary to have the right start to the sentence
// Slashes necessary to have the right start to the sentence
// copying data prevents SpeakString from reading additional chars
// copying data prevents SpeakString from reading additional chars
text
=
"
\\
"
+
text
;
text
=
"
\\
"
+
text
;
QStdWS
tring
str
=
text
.
toStdWString
();
std
::
ws
tring
str
=
text
.
toStdWString
();
unsigned
char
str2
[
1024
]
=
{};
unsigned
char
str2
[
1024
]
=
{};
memcpy
(
str2
,
text
.
toLatin1
().
data
(),
str
.
length
());
memcpy
(
str2
,
text
.
toLatin1
().
data
(),
str
.
length
());
SpeakString
(
str2
);
SpeakString
(
str2
);
...
...
src/GAudioOutput.h
View file @
30e9ca4a
...
@@ -36,8 +36,8 @@ This file is part of the PIXHAWK project
...
@@ -36,8 +36,8 @@ This file is part of the PIXHAWK project
#include <QTimer>
#include <QTimer>
#include <QStringList>
#include <QStringList>
#ifdef Q_OS_MAC
#ifdef Q_OS_MAC
#include <MediaObject>
//
#include <MediaObject>
#include <AudioOutput>
//
#include <AudioOutput>
#endif
#endif
#ifdef Q_OS_LINUX
#ifdef Q_OS_LINUX
//#include <phonon/MediaObject>
//#include <phonon/MediaObject>
...
...
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