Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
mediastreamer2
Commits
3d08d4dd
Commit
3d08d4dd
authored
Jan 19, 2016
by
Simon Morlat
Browse files
fix android build
parent
2e78b351
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
src/android/androidsound.cpp
src/android/androidsound.cpp
+3
-3
src/android/androidsound_opensles.cpp
src/android/androidsound_opensles.cpp
+3
-3
No files found.
src/android/androidsound.cpp
View file @
3d08d4dd
...
...
@@ -347,11 +347,11 @@ static void android_snd_read_cb(int event, void* user, void *p_info){
* 1) understand why AudioRecord thread doesn't detach.
* 2) disable logs just for this thread (using a TLS)
*/
int
loglevel
=
ortp_get_log_level_mask
();
ortp_set_log_level_mask
(
ORTP_ERROR
|
ORTP_FATAL
);
int
loglevel
=
ortp_get_log_level_mask
(
ORTP_LOG_DOMAIN
);
ortp_set_log_level_mask
(
NULL
,
ORTP_ERROR
|
ORTP_FATAL
);
ad
->
mTickerSynchronizer
=
ms_ticker_synchronizer_new
();
ms_ticker_set_time_func
(
obj
->
ticker
,(
uint64_t
(
*
)(
void
*
))
ms_ticker_synchronizer_get_corrected_time
,
ad
->
mTickerSynchronizer
);
ortp_set_log_level_mask
(
loglevel
);
ortp_set_log_level_mask
(
ORTP_LOG_DOMAIN
,
loglevel
);
}
if
(
event
==
AudioRecord
::
EVENT_MORE_DATA
){
AudioRecord
::
Buffer
info
;
...
...
src/android/androidsound_opensles.cpp
View file @
3d08d4dd
...
...
@@ -417,11 +417,11 @@ static void opensles_recorder_callback(SLAndroidSimpleBufferQueueItf bq, void *c
* 1) understand why AudioRecord thread doesn't detach.
* 2) disable logs just for this thread (using a TLS)
*/
int
loglevel
=
ortp_get_log_level_mask
();
ortp_set_log_level_mask
(
ORTP_ERROR
|
ORTP_FATAL
);
int
loglevel
=
ortp_get_log_level_mask
(
ORTP_LOG_DOMAIN
);
ortp_set_log_level_mask
(
ORTP_LOG_DOMAIN
,
ORTP_ERROR
|
ORTP_FATAL
);
ictx
->
mTickerSynchronizer
=
ms_ticker_synchronizer_new
();
ms_ticker_set_time_func
(
obj
->
ticker
,(
uint64_t
(
*
)(
void
*
))
ms_ticker_synchronizer_get_corrected_time
,
ictx
->
mTickerSynchronizer
);
ortp_set_log_level_mask
(
loglevel
);
ortp_set_log_level_mask
(
ORTP_LOG_DOMAIN
,
loglevel
);
}
ictx
->
read_samples
+=
ictx
->
inBufSize
/
sizeof
(
int16_t
);
...
...
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