Commit 3d08d4dd authored by Simon Morlat's avatar Simon Morlat
Browse files

fix android build

parent 2e78b351
......@@ -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;
......
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment