sound的sound_complete事件

soundChannel的sound_complete事件并不能准确的发出,而且是大部分是监听不到这个事件,

然后只能我用了一个方法:现在播放的时间除以音乐的总时间大于99%就认为是结束了。

1970-01-01 00:19:13 [tone][Info] [tone_mgr.c(83)ToneSaveToneAct] ToneSaveToneAction:"/etc/voice/WiFiConnecting.aac" 1970-01-01 00:19:13 [OSS_cspd][Warn] [oss_event_handl(149)OssEventListCal] OssEventListCallChain id = 0xa24a!! 1970-01-01 00:19:13 [led][Info] [led_mgr.c(543)_LedEvent2Str] szModName:cspd.cspconfig.wlan_config, dwEvent:41546. 1970-01-01 00:19:13 [led][Info] [led_mgr.c(551)_LedEvent2Str] szEvent:EV_WLAN_START_CONNECT_AP. 1970-01-01 00:19:13 [led][Info] [led_mgr.c(486)_LedRunFSM] This event:EV_WLAN_START_CONNECT_AP is not valid, state machine:12 1970-01-01 00:19:13 [led][Info] [led_mgr.c(490)_LedRunFSM] CurrentFSM Info: CurrentState: 1 Event: EV_WLAN_START_CONNECT_AP ChkFunc: (nil) NextState: 2 LedAction: 136704 LedActionEx: (nil) 1970-01-01 00:19:13 [led][Info] [led_mgr.c(77)LedSaveLedActio] LedSaveLedAction:136704 1970-01-01 00:19:13 [wlan_mgr][Info] [wlan_manage.c(398)wlan_handle_set] wlan_handle_set=DEV.WIFI.RD1,obj=0x10012 1970-01-01 00:19:13 [player][Info] [zte_audio_play.(163)_AudioPlayHandl] To play work 4 is higher than playing 0 1970-01-01 00:19:13 [player][Info] [audio_play.c(533)_AudioPlayFileG] tCameraConf.tVoiceRmdEnable is [1]! 1970-01-01 00:19:13 [player][Info] [pdt_audio_out.c(357)HalAoRestartApc] HalAoRestartApc success 1970-01-01 00:19:13 [player][Info] [audio_play.c(630)_AudioPlayFile] Play File:[/etc/voice/WiFiConnecting.aac], type:[5], starttime:[0]! 1970-01-01 00:19:13 [sound_detect][Info] [sound_detect.c(863)SoundDetectHdlA] Sound detect get audio play start msg 1970-01-01 00:19:13 [sound_detect][Info] [sound_detect.c(735)sdInActiveDetec] sounddetect InActDect [avserver.sound_detect.audio_play] 1970-01-01 00:19:13 [sound_detect][Info] [sound_detect.c(663)stopSoundDetect] EffectList is not empty 1970-01-01 00:19:13 [player][Info] [audio_play.c(200)_AudioPlaySubSc] audio play mgr Notify module, iRet:1 Event:1 1970-01-01 00:19:13 [audio][Info] [audio_mgr.c(1177)_AudioHandleUnR] Audio APP UnRegist, iAppID:[16]! 1970-01-01 00:19:13 [wlan_config][Info] [ifs_netif.c(1897)SetNetIFDown] NetIF receive [down] on State [INTERFACE_INIT] 1970-01-01 00:19:13 [wlan_config][Error] [wlan_config.c(1095)_wlan_ifs_sta] _wlan_ifs_sta() 1095:DEV.WIFI.SSID101 SetNetIFDown fail 1970-01-01 00:19:13 [wlan_config][Info] [ifs_netif.c(2009)SetNetIFDel] NetIF receive [Del] on State [INTERFACE_INIT] 1970-01-01 00:19:13 [U_lbh_client][Info] [zte_ble_service(863)SendDataToBle] curtime:1152508, SendDataToBle success. 1970-01-01 00:19:13 [player][Info] [audio_play.c(220)_AudioPlaySetSp] Set speak power:1 1970-01-01 00:19:13 [Kernel][Info] speaker init ok mode 2 1970-01-01 00:19:13 [player][Error] [audio_play_file(598)_AudioPlayGetOw] fread error, strerror-[Bad file descriptor]! 1970-01-01 00:19:13 [player][Info] [audio_play.c(257)_AudioPlayCheck] g_bAoInProgress: 1 aic_btusb: check_sco_event: HCI_EV_DISCONN_COMPLETE(0x05) read byte(7): type 4 04 05 04 00 11 00 13 ble_app_disconnect_cb disconnect 17 19这是设备通过安卓APP拿到蓝牙下发的无线配置后开始去关联的日志,[MI_AO_IMPL_Write:5513] start DMA0 success. 1970-01-01 00:21:14 [wlan_config][Info] [wlan_stacfg.c(2035)wlan_handle_sta] New Conf, set DevMode 1 to OnOff 1. 1970-01-01 00:21:14 [wlan_config][Info] [ifs_netif.c(1897)SetNetIFDown] NetIF receive [down] on State [INTERFACE_INIT] 1970-01-01 00:21:14 [wlan_config][Error] [wlan_config.c(1095)_wlan_ifs_sta] _wlan_ifs_sta() 1095:DEV.WIFI.SSID101 SetNetIFDown fail 1970-01-01 00:21:14 [wlan_config][Info] [ifs_netif.c(2009)SetNetIFDel] NetIF receive [Del] on State [INTERFACE_INIT] 1970-01-01 00:21:14 [wlan_config][Info] [wlan_stacfg.c(1761)wlan_handle_sma] The SmartConfig ap ssid is ZBWIFI, enter in connecting state. 1970-01-01 00:21:14 [wlan_config][Info] [wlan_extsta.c(181)wlan_handle_sta] Send wEvent a24a to pid:cspd.cspd.tone ! 1970-01-01 00:21:14 [wlan_config][Info] [wlan_extsta.c(181)wlan_handle_sta] Send wEvent a24a to pid:cspd.cspd.netconf ! 1970-01-01 00:21:14 [wlan_config][Info] [wlan_extsta.c(181)wlan_handle_sta] Send wEvent a24a to pid:cspd.cspd.led ! 1970-01-01 00:21:14 [tone][Info] [tone_mgr.c(506)_ToneEvent2Str] szModName:cspd.cspconfig.wlan_config, dwEvent:41546. 1970-01-01 00:21:14 [tone][Info] [tone_mgr.c(514)_ToneEvent2Str] szEvent:EV_WLAN_START_CONNECT_AP. 1970-01-01 00:21:14 [tone][Info] [tone_mgr.c(445)_ToneRunFSM] This event:EV_WLAN_START_CONNECT_AP is not valid, state machine:10 1970-01-01 00:21:14 [tone][Info] [tone_mgr.c(449)_ToneRunFSM] CurrentFSM Info: CurrentState: 1 Event: EV_WLAN_START_CONNECT_AP ChkFunc: (nil) NextState: 2 ToneAction: /etc/voice/WiFiConnecting.aac ToneActionEx: (nil) 1970-01-01 00:21:14 [tone][Info] [tone_mgr.c(83)ToneSaveToneAct] ToneSaveToneAction:"/etc/voice/WiFiConnecting.aac" 1970-01-01 00:21:14 [OSS_cspd][Warn] [oss_event_handl(149)OssEventListCal] OssEventListCallChain id = 0xa24a!! 1970-01-01 00:21:14 [led][Info] [led_mgr.c(543)_LedEvent2Str] szModName:cspd.cspconfig.wlan_config, dwEvent:41546. 1970-01-01 00:21:14 [led][Info] [led_mgr.c(551)_LedEvent2Str] szEvent:EV_WLAN_START_CONNECT_AP. 1970-01-01 00:21:14 [led][Info] [led_mgr.c(486)_LedRunFSM] This event:EV_WLAN_START_CONNECT_AP is not valid, state machine:12 1970-01-01 00:21:14 [led][Info] [led_mgr.c(490)_LedRunFSM] CurrentFSM Info: CurrentState: 1 Event: EV_WLAN_START_CONNECT_AP ChkFunc: (nil) NextState: 2 LedAction: 136704 LedActionEx: (nil) 1970-01-01 00:21:14 [led][Info] [led_mgr.c(77)LedSaveLedActio] LedSaveLedAction:136704 1970-01-01 00:21:14 [wlan_mgr][Info] [wlan_manage.c(398)wlan_handle_set] wlan_handle_set=DEV.WIFI.RD1,obj=0x10012 1970-01-01 00:21:14 [player][Info] [zte_audio_play.(163)_AudioPlayHandl] To play work 4 is higher than playing 0 1970-01-01 00:21:14 [player][Info] [audio_play.c(533)_AudioPlayFileG] tCameraConf.tVoiceRmdEnable is [1]! 1970-01-01 00:21:14 [player][Info] [pdt_audio_out.c(357)HalAoRestartApc] HalAoRestartApc success 1970-01-01 00:21:14 [player][Info] [audio_play.c(630)_AudioPlayFile] Play File:[/etc/voice/WiFiConnecting.aac], type:[5], starttime:[0]! 1970-01-01 00:21:14 [sound_detect][Info] [sound_detect.c(863)SoundDetectHdlA] Sound detect get audio play start msg 1970-01-01 00:21:14 [sound_detect][Info] [sound_detect.c(735)sdInActiveDetec] sounddetect InActDect [avserver.sound_detect.audio_play] 1970-01-01 00:21:14 [sound_detect][Info] [sound_detect.c(663)stopSoundDetect] EffectList is not empty 1970-01-01 00:21:14 [player][Info] [audio_play.c(200)_AudioPlaySubSc] audio play mgr Notify module, iRet:1 Event:1 1970-01-01 00:21:14 [audio][Info] [audio_mgr.c(1177)_AudioHandleUnR] Audio APP UnRegist, iAppID:[16]! 1970-01-01 00:21:14 [wlan_config][Info] [ifs_netif.c(1897)SetNetIFDown] NetIF receive [down] on State [INTERFACE_INIT] 1970-01-01 00:21:14 [wlan_config][Error] [wlan_config.c(1095)_wlan_ifs_sta] _wlan_ifs_sta() 1095:DEV.WIFI.SSID101 SetNetIFDown fail 1970-01-01 00:21:15 [wlan_config][Info] [ifs_netif.c(2009)SetNetIFDel] NetIF receive [Del] on State [INTERFACE_INIT] 1970-01-01 00:21:15 [player][Info] [audio_play.c(220)_AudioPlaySetSp] Set speak power:1 1970-01-01 00:21:15 [Kernel][Info] speaker init ok mode 2 app_queue_done on queue_recv_len 85 0xf 0x52 0x0 0x1 0x50 0x81 0x74 0xb5 0xce 0x0 0x80 0x0 0x20 0x0 0x0 0x0 0x80 0x7f 0x18 0x10 0x15 0x10 0x7b 0x22 0x72 0x65 0x73 0x22 0x3a 0x30 0x2c 0x20 0x22 0x6f 0x69 0x64 0x22 0x3a 0x22 0x48 0x4e 0x35 0x59 0x59 0x30 0x4b 0x52 0x34 0x54 0x30 0x30 0x30 0x38 0x37 0x22 0x2c 0x20 0x22 0x72 0x65 0x67 0x22 0x3a 0x22 0x32 0x39 0x31 0x34 0x2d 0x34 0x35 0x34 0x38 0x2d 0x34 0x34 0x38 0x30 0x2d 0x37 0x31 0x33 0x33 0x22 0x7d recv_s_len 82, recv_s_offset 0 APP:ble_only_msg id:15 ,len = 82 app_smartconfig_update_read_value , len 66 APP: msg id:15 :status:0 exit ble_s_to_c send(1,0): queue_recv_len 0 update_need_read_value_handler , len 66 update_need_read_value_handler rd_len = 66, param_len = 66 do notify这是设备通过IOS的APP拿到蓝牙下发的无线配置后开始去关联的日志,为什么IOS的APP,设备拿到无线配置后没有像安卓的APP使设备立马触发aic_btusb: check_sco_event: HCI_EV_DISCONN_COMPLETE(0x05),而是在设备蓝牙配网失败五六分钟后才触发aic_btusb: check_sco_event: HCI_EV_DISCONN_COMPLETE(0x05),此时设备蓝牙信号才恢复
08-13
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值