android - Why does running music stop when new music is played? -
when game starts, music starts. after time, music b starts. problem when music b starts, music stops. sound of music ceases. would've wanted both play simultaneously.
this problem occurs on 1 phone of mine : moto g 2nd gen running android l. not occur in other phones or on emulators.
the problem doesn't pertain phone's speakers, because same problem occurs while using earphones on phone.
i'm using libgdx's music
class playing music.
what might issue be?
here logcat right after music b starts playing:
06-04 14:29:56.772: v/alarmmanager(869): send {37acb279, *alarm*:com.domobile.applock/.service.lockservice} 06-04 14:29:56.773: v/alarmmanager(869): done {37acb279, *alarm*:com.domobile.applock/.service.lockservice} [5ms] 06-04 14:29:56.782: d/hardware_info(316): hw_info_append_hw_type : device_name = speaker 06-04 14:29:56.786: e/msm8974_platform(316): platform_update_tpa_poll: not ctl mixer cmd - tpa6165 poll acc det 06-04 14:29:56.790: i/audioflinger(316): hal output buffer size 32768 frames, normal sink buffer size 32768 frames 06-04 14:29:56.791: i/audioflinger(316): audioflinger's thread 0xb8586988 ready run 06-04 14:29:56.793: w/audioflinger(316): moveeffectchain_l() effect chain session 0 not on source thread 0xb5b51008 06-04 14:29:56.806: d/audio_hw_primary(316): out_set_parameters: enter: usecase(3: compress-offload-playback) kvpairs: routing=2 06-04 14:29:56.818: d/audio_hw_primary(316): out_set_parameters: enter: usecase(3: compress-offload-playback) kvpairs: delay_samples=576;music_offload_avg_bit_rate=128000;music_offload_sample_rate=48000;padding_samples=1720 06-04 14:29:56.828: d/audio_hw_primary(316): out_set_parameters: enter: usecase(3: compress-offload-playback) kvpairs: delay_samples=576;music_offload_avg_bit_rate=128000;music_offload_sample_rate=48000;padding_samples=1720 06-04 14:29:56.859: v/msm8974_platform(316): platform_get_output_snd_device: enter: output devices(0x2) 06-04 14:29:56.859: v/msm8974_platform(316): platform_get_output_snd_device: exit: snd_device(speaker) 06-04 14:29:56.859: d/audio_hw_primary(316): select_devices: out_snd_device(2: speaker) in_snd_device(0: ) 06-04 14:29:56.859: d/hardware_info(316): hw_info_append_hw_type : device_name = speaker 06-04 14:29:56.859: v/msm8974_platform(316): platform_send_audio_calibration: sending audio calibration snd_device(2) acdb_id(14) 06-04 14:29:56.868: e/msm8974_platform(316): platform_update_tpa_poll: not ctl mixer cmd - tpa6165 poll acc det 06-04 14:29:57.069: v/alarmmanager(869): send {37acb279, *alarm*:com.domobile.applock/.service.lockservice} 06-04 14:29:57.073: v/alarmmanager(869): done {37acb279, *alarm*:com.domobile.applock/.service.lockservice} [5ms] 06-04 14:29:57.373: v/alarmmanager(869): send {37acb279, *alarm*:com.domobile.applock/.service.lockservice} 06-04 14:29:57.376: v/alarmmanager(869): done {37acb279, *alarm*:com.domobile.applock/.service.lockservice} [8ms] 06-04 14:29:57.672: v/alarmmanager(869): send {37acb279, *alarm*:com.domobile.applock/.service.lockservice} 06-04 14:29:57.676: v/alarmmanager(869): done {37acb279, *alarm*:com.domobile.applock/.service.lockservice} [8ms] 06-04 14:29:57.973: v/alarmmanager(869): send {37acb279, *alarm*:com.domobile.applock/.service.lockservice} 06-04 14:29:57.976: v/alarmmanager(869): done {37acb279, *alarm*:com.domobile.applock/.service.lockservice} [8ms] 06-04 14:29:58.272: v/alarmmanager(869): send {37acb279, *alarm*:com.domobile.applock/.service.lockservice} 06-04 14:29:58.277: v/alarmmanager(869): done {37acb279, *alarm*:com.domobile.applock/.service.lockservice} [9ms] 06-04 14:29:58.575: v/alarmmanager(869): send {37acb279, *alarm*:com.domobile.applock/.service.lockservice} 06-04 14:29:58.576: v/alarmmanager(869): done {37acb279, *alarm*:com.domobile.applock/.service.lockservice} [8ms] 06-04 14:29:58.876: v/alarmmanager(869): send {37acb279, *alarm*:com.domobile.applock/.service.lockservice} 06-04 14:29:58.876: v/alarmmanager(869): done {37acb279, *alarm*:com.domobile.applock/.service.lockservice} [8ms] 06-04 14:29:59.172: v/alarmmanager(869): send {37acb279, *alarm*:com.domobile.applock/.service.lockservice} 06-04 14:29:59.176: v/alarmmanager(869): done {37acb279, *alarm*:com.domobile.applock/.service.lockservice} [8ms] 06-04 14:29:59.406: i/thermalengine(325): sensor:xo_therm_pu2:41000 mc 06-04 14:29:59.474: v/alarmmanager(869): send {37acb279, *alarm*:com.domobile.applock/.service.lockservice} 06-04 14:29:59.476: v/alarmmanager(869): done {37acb279, *alarm*:com.domobile.applock/.service.lockservice} [8ms] 06-04 14:29:59.677: i/sbar.motonetworkctrlr(1382): onreceive: wifimanager.rssi_changed_action received 06-04 14:29:59.677: i/sbar.motonetworkctrlr(1382): updatewifistate: rssi_changed_action: mwificonnected=true mwifilevel=3 mwifirssi=-64 06-04 14:29:59.681: d/phoneapp(1681): getphone phoneid:0 06-04 14:29:59.687: i/sbar.motonetworkctrlr(1382): refreshsignalcluster[0]: wifi: mwificonnected=true wifi=0x7f020130=stat_sys_wifi_signal_3_fully activity=0x00000000=( none ) accessibility="wifi 3 bars." 06-04 14:29:59.690: i/sbar.motonetworkctrlr(1382): updatetelephonysignalstrength[1]: no service 06-04 14:29:59.691: i/sbar.motonetworkctrlr(1382): updatedatanettype[1]: phoneid1 not dds( =phoneid0 ) ! -- set data icons off ( subscriptionmanager.getphoneid returned 0=0x00000000 ) 06-04 14:29:59.692: i/sbar.motonetworkctrlr(1382): refreshsignalcluster[1]: wifi: mwificonnected=true wifi=0x7f020130=stat_sys_wifi_signal_3_fully activity=0x00000000=( none ) accessibility="wifi 3 bars." 06-04 14:29:59.692: i/sbar.motonetworkctrlr(1382): onreceive: wifimanager.rssi_changed_action received 06-04 14:29:59.692: i/sbar.motonetworkctrlr(1382): updatewifistate: rssi_changed_action: mwificonnected=true mwifilevel=3 mwifirssi=-64 06-04 14:29:59.695: d/phoneapp(1681): getphone phoneid:0 06-04 14:29:59.699: i/sbar.motonetworkctrlr(1382): updatetelephonysignalstrength[1]: no service 06-04 14:29:59.700: i/sbar.motonetworkctrlr(1382): updatedatanettype[1]: phoneid1 not dds( =phoneid0 ) ! -- set data icons off ( subscriptionmanager.getphoneid returned 0=0x00000000 ) 06-04 14:29:59.770: v/alarmmanager(869): send {37acb279, *alarm*:com.domobile.applock/.service.lockservice} 06-04 14:29:59.772: v/alarmmanager(869): done {37acb279, *alarm*:com.domobile.applock/.service.lockservice} [4ms] 06-04 14:30:00.000: v/alarmmanager(869): send {abf518f, *alarm*:android.intent.action.time_tick} 06-04 14:30:00.070: v/alarmmanager(869): send {37acb279, *alarm*:com.domobile.applock/.service.lockservice} 06-04 14:30:00.070: v/alarmmanager(869): done {37acb279, *alarm*:com.domobile.applock/.service.lockservice} [2ms] 06-04 14:30:00.074: v/alarmmanager(869): done {abf518f, *alarm*:android.intent.action.time_tick} [74ms] 06-04 14:30:00.376: v/alarmmanager(869): send {37acb279, *alarm*:com.domobile.applock/.service.lockservice} 06-04 14:30:00.376: v/alarmmanager(869): done {37acb279, *alarm*:com.domobile.applock/.service.lockservice} [8ms] 06-04 14:30:00.672: v/alarmmanager(869): send {37acb279, *alarm*:com.domobile.applock/.service.lockservice} 06-04 14:30:00.674: v/alarmmanager(869): done {37acb279, *alarm*:com.domobile.applock/.service.lockservice} [6ms] 06-04 14:30:00.969: v/alarmmanager(869): send {37acb279, *alarm*:com.domobile.applock/.service.lockservice} 06-04 14:30:00.971: v/alarmmanager(869): done {37acb279, *alarm*:com.domobile.applock/.service.lockservice} [3ms] 06-04 14:30:01.000: v/alarmmanager(869): send {1799853a, *alarm*:com.android.deskclock.on_quarter_hour} 06-04 14:30:01.062: i/activitymanager(869): start proc com.google.android.deskclock broadcast com.google.android.deskclock/com.android.alarmclock.digitalappwidgetprovider: pid=9611 uid=10059 gids={50059, 9997, 1028} abi=armeabi-v7a 06-04 14:30:01.064: i/sfperftracer(285): triggers: (rate: 121:10967) (2 sw vsyncs) (0 skipped) (615:1406278 vsyncs) (617:1731577) 06-04 14:30:01.268: v/alarmmanager(869): done {1799853a, *alarm*:com.android.deskclock.on_quarter_hour} [267ms] 06-04 14:30:01.270: v/alarmmanager(869): send {37acb279, *alarm*:com.domobile.applock/.service.lockservice} 06-04 14:30:01.272: v/alarmmanager(869): done {37acb279, *alarm*:com.domobile.applock/.service.lockservice} [4ms] 06-04 14:30:01.569: v/alarmmanager(869): send {37acb279, *alarm*:com.domobile.applock/.service.lockservice} 06-04 14:30:01.574: v/alarmmanager(869): done {37acb279, *alarm*:com.domobile.applock/.service.lockservice} [6ms] 06-04 14:30:01.870: v/alarmmanager(869): send {37acb279, *alarm*:com.domobile.applock/.service.lockservice} 06-04 14:30:01.873: v/alarmmanager(869): done {37acb279, *alarm*:com.domobile.applock/.service.lockservice} [5ms] 06-04 14:30:02.169: v/alarmmanager(869): send {37acb279, *alarm*:com.domobile.applock/.service.lockservice} 06-04 14:30:02.171: v/alarmmanager(869): done {37acb279, *alarm*:com.domobile.applock/.service.lockservice} [3ms] 06-04 14:30:02.469: v/alarmmanager(869): send {37acb279, *alarm*:com.domobile.applock/.service.lockservice} 06-04 14:30:02.471: v/alarmmanager(869): done {37acb279, *alarm*:com.domobile.applock/.service.lockservice} [3ms] 06-04 14:30:02.702: i/sbar.motonetworkctrlr(1382): onreceive: wifimanager.rssi_changed_action received 06-04 14:30:02.702: i/sbar.motonetworkctrlr(1382): updatewifistate: rssi_changed_action: mwificonnected=true mwifilevel=3 mwifirssi=-65 06-04 14:30:02.708: d/phoneapp(1681): getphone phoneid:0 06-04 14:30:02.711: i/sbar.motonetworkctrlr(1382): updatetelephonysignalstrength[1]: no service 06-04 14:30:02.712: i/sbar.motonetworkctrlr(1382): updatedatanettype[1]: phoneid1 not dds( =phoneid0 ) ! -- set data icons off ( subscriptionmanager.getphoneid returned 0=0x00000000 ) 06-04 14:30:02.769: v/alarmmanager(869): send {37acb279, *alarm*:com.domobile.applock/.service.lockservice} 06-04 14:30:02.771: v/alarmmanager(869): done {37acb279, *alarm*:com.domobile.applock/.service.lockservice} [3ms] 06-04 14:30:03.069: v/alarmmanager(869): send {37acb279, *alarm*:com.domobile.applock/.service.lockservice} 06-04 14:30:03.074: v/alarmmanager(869): done {37acb279, *alarm*:com.domobile.applock/.service.lockservice} [6ms] 06-04 14:30:03.369: v/alarmmanager(869): send {37acb279, *alarm*:com.domobile.applock/.service.lockservice} 06-04 14:30:03.373: v/alarmmanager(869): done {37acb279, *alarm*:com.domobile.applock/.service.lockservice} [5ms] 06-04 14:30:03.605: d/phoneapp(1681): getphone phoneid:0 06-04 14:30:03.609: i/sbar.motonetworkctrlr(1382): updatetelephonysignalstrength[1]: no service 06-04 14:30:03.610: i/sbar.motonetworkctrlr(1382): updatedatanettype[1]: phoneid1 not dds( =phoneid0 ) ! -- set data icons off ( subscriptionmanager.getphoneid returned 0=0x00000000 )
perhaps using encoded format requires hardware level decoding, , decoder can process 1 decoding @ time? perhaps there other resource can process 1 musit @ time?
Comments
Post a Comment