wenxin-wang / PulseDroidRtp

Receive and play PulseAudio RTP stream on Android
48 stars 1 forks source link

logd 占用很高的cpu #12

Open sdandroid opened 1 year ago

sdandroid commented 1 year ago
8-30 12:00:54.572 22940 17775 I chatty  : uid=10551(me.wenxinwang.pulsedroidrtp) identical 1 line
08-30 12:00:54.573 22940 17775 E PULSE_RTP_OBOE_ENGINE: Strange packet 320
08-30 12:00:54.574   967  4422 I btaudio_offload_qti: audio_get_a2dp_sink_latency_qti: Sink Latency = 200
08-30 12:00:54.575 22940 17775 E PULSE_RTP_OBOE_ENGINE: Strange packet 320
08-30 12:00:54.577 22940 17775 E PULSE_RTP_OBOE_ENGINE: Strange packet 320
08-30 12:00:54.577   967  4422 I btaudio_offload_qti: audio_get_a2dp_sink_latency_qti: Sink Latency = 200
08-30 12:00:54.578 22940 17775 E PULSE_RTP_OBOE_ENGINE: Strange packet 320
08-30 12:00:54.580  4091  4321 D MainServiceImplHandler: : handleMessage msg.what = 1002
08-30 12:00:54.580  4091  4321 D MainServiceImplHandler: : EVENT_STATE_INIT
08-30 12:00:54.581 22940 17775 E PULSE_RTP_OBOE_ENGINE: Strange packet 320
08-30 12:00:54.581   967  4422 I btaudio_offload_qti: audio_get_a2dp_sink_latency_qti: Sink Latency = 200
08-30 12:00:54.582 22940 17775 E PULSE_RTP_OBOE_ENGINE: Strange packet 320
08-30 12:00:54.583 22940 17775 I chatty  : uid=10551(me.wenxinwang.pulsedroidrtp) identical 1 line
08-30 12:00:54.585 22940 17775 E PULSE_RTP_OBOE_ENGINE: Strange packet 320
08-30 12:00:54.585   967  4422 I btaudio_offload_qti: audio_get_a2dp_sink_latency_qti: Sink Latency = 200
08-30 12:00:54.586 22940 17775 E PULSE_RTP_OBOE_ENGINE: Strange packet 320
08-30 12:00:54.589 22940 17775 E PULSE_RTP_OBOE_ENGINE: Strange packet 320
08-30 12:00:54.589   967  4422 I btaudio_offload_qti: audio_get_a2dp_sink_latency_qti: Sink Latency = 200
08-30 12:00:54.590 22940 17775 E PULSE_RTP_OBOE_ENGINE: Strange packet 320
08-30 12:00:54.591 22940 17775 E PULSE_RTP_OBOE_ENGINE: Strange packet 320
08-30 12:00:54.594   967  4422 I btaudio_offload_qti: audio_get_a2dp_sink_latency_qti: Sink Latency = 200
08-30 12:00:54.594 22940 17775 E PULSE_RTP_OBOE_ENGINE: Strange packet 320
08-30 12:00:54.595 22940 17775 I chatty  : uid=10551(me.wenxinwang.pulsedroidrtp) identical 2 lines
08-30 12:00:54.597 22940 17775 E PULSE_RTP_OBOE_ENGINE: Strange packet 320
08-30 12:00:54.597   967  4422 I btaudio_offload_qti: audio_get_a2dp_sink_latency_qti: Sink Latency = 200
08-30 12:00:54.599 22940 17775 E PULSE_RTP_OBOE_ENGINE: Strange packet 320
08-30 12:00:54.600 22940 17775 E PULSE_RTP_OBOE_ENGINE: Strange packet 320
08-30 12:00:54.602   967  4422 I btaudio_offload_qti: audio_get_a2dp_sink_latency_qti: Sink Latency = 200
08-30 12:00:54.603 22940 17775 E PULSE_RTP_OBOE_ENGINE: Strange packet 320

播放的时候这样的日志一直打印,可以去掉这些日志吗

sdandroid commented 1 year ago

还有一个问题就是如果拿到离开wifi的范围,再回来的话,这个时候点stop没有反应必须重启应用才行。

wenxin-wang commented 1 year ago

感谢你花时间发问题!我最近有些忙,来不及看这些问题。如果你愿意修复问题,很欢迎你的 PR!或者等我有时间后再来看。

-- Sincerely, Wenxin Wang

On Thu, Sep 15, 2022, at 3:25 PM, 高彬 wrote:

Reopened #12 https://github.com/wenxin-wang/PulseDroidRtp/issues/12.

— Reply to this email directly, view it on GitHub https://github.com/wenxin-wang/PulseDroidRtp/issues/12#event-7392192167, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA2NQ3OPXTE2NHWW47RLGV3V6LFNJANCNFSM6AAAAAAQAAGBAQ. You are receiving this because you are subscribed to this thread.Message ID: @.***>

sdandroid commented 1 year ago

这个不会,会的话就弄了

sdandroid commented 1 year ago
    else if (bytes_recvd != data_.size()) {
        LOGE("Strange packet %zu", bytes_recvd);
   }

不知道这段代码是干什么的 ,只是打了个日志就直接注释了。