Jump to content

Poweramp doesn't stop playing music on outgoing call (Pause in Call does not work)


UltraMax

Recommended Posts

Please specify the following:

Poweramp build number: Build 939-bundle-play
Motorola Moto G51 (XT-2171-3)
Android version: 11
Original China ROM (not Global, as this phone configuration is for China mrket)

steps to reproduce
photo-2022-08-17-15-04-06.jpg

When a headset or anything else is connected to the phone Pause in call does not work for outgoing call (though it works for incoming call). Also there is no issue exist when I listen music without a headset (using phone's dynamics)

If I use Poweramp v.2 - there are no any issues (everything works well with these settings) 

photo-2022-08-10-15-31-18.jpg   

I cannot send a log file at the moment as when I try it says that there is no application can perform this action so I can only include settings but where do I do it? I can't attach anything here

 

Link to comment
Share on other sites

16 hours ago, andrewilley said:

What output method are you using? Try restoring defaults in Settings=>Audio=>Outputs.

Default output method. Restoring defaults does not help

I have sent logs by email, also including here

Quote

 

 

Version Info ======================
Build: Poweramp build-939-bundle-play full verified cached
Store: Play
Unlocker: build-305
Arch: 64
Skin: ActivityTheme_Black
Device: motorola XT2171-3 cypfq cypfq cypfq_cmcc [arm64-v8a, armeabi-v7a, armeabi]
Installer: com.android.vending (28.3.18-21 [0] [PR] 414068199)
Android: 11 motorola/cypfq_cmcc/cypfq:11/RRYA31.Q3-56-99-2/0e9209:user/release-keys en_GB


Poweramp Log ======================
--------- beginning of system
08-17 10:04:57.758 17292 26430 E ActivityThread: Failed to find provider info for com.maxmpz.audioplayer
08-17 10:18:51.181 17292 26814 E ActivityThread: Failed to find provider info for com.maxmpz.audioplayer
08-17 10:21:11.026 17292 26926 E ActivityThread: Failed to find provider info for com.maxmpz.audioplayer
08-17 10:21:33.100 17292 27191 E ActivityThread: Failed to find provider info for com.maxmpz.audioplayer
08-17 10:22:08.191 17292 27334 E ActivityThread: Failed to find provider info for com.maxmpz.audioplayer
08-17 11:21:56.135 17292 17292 I ActivityThread: Removing dead content provider:android.content.ContentProviderProxy@73c6c51
08-17 14:53:30.862 17292 13373 E ActivityThread: Failed to find provider info for com.maxmpz.audioplayer
08-17 14:53:33.372 17292 13457 E ActivityThread: Failed to find provider info for com.maxmpz.audioplayer
08-17 15:01:58.568 17292 14078 E ActivityThread: Failed to find provider info for com.maxmpz.audioplayer
08-17 15:01:58.815 17292 14095 E ActivityThread: Failed to find provider info for com.maxmpz.audioplayer
08-17 15:02:14.573 17292 14177 E ActivityThread: Failed to find provider info for com.maxmpz.audioplayer
08-17 15:02:41.063 17292 14628 D ActivityThread: Loading provider com.maxmpz.audioplayer: com.maxmpz.audioplayer.unlock.DataProvider
08-17 18:52:18.313 24986 24986 I ActivityThread: Removing dead content provider:android.content.ContentProviderProxy@910a19e
--------- beginning of main
08-17 19:06:33.357 24986 24986 V MediaRouter: Audio routes updated: AudioRoutesInfo{ type=HEADSET }, a2dp=false
08-17 19:06:33.358 24986 24986 V MediaRouter: Selecting route: RouteInfo{ name=Headphones, description=null, status=null, category=RouteCategory{ name=System types=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO  groupable=false }, supportedTypes=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO , presentationDisplay=null }
08-17 19:06:33.358 24986 24986 V MediaRouter: Selecting route ignored,not new route
08-17 19:06:33.378 24986 24986 W PlayerConnection: Not allowed to start service Intent { cmp=com.maxmpz.audioplayer/.player.PlayerService }: app is in background uid UidRecord{9461b94 u0a351 RCVR bg:+4d16h22m48s674ms idle change:uncached procs:1 seq(153,153,153)}
08-17 19:06:33.407 24986 25076 D BluetoothA2dp: Binding service...
08-17 19:06:33.422 24986 25079 W PSOutputManager: selected output=com.maxmpz.audioplayer/output.at for device=0 deviceName=headset flags=0x10
08-17 19:06:33.425 24986 25079 I atoutput.c: output_create output_buf_ms=50 dsp_bufs=1 dsp_postfade_blocks=1 dsp_prefetch_bufs=3 flags=0x10 sample_rate=0 sample_fmt=0 vis_latency_ms=0
08-17 19:06:33.426 24986 25079 I atoutput.c: output_create frames_per_block=1928 block ms=40.166668 g_at_min_buf_frames_48k=1928 sr_mult=1 at_min_buf_frames=1928 sr=48000 reported_native_sample_rate=48000 caps=0x10 latency=80.333336
08-17 19:06:33.434 24986 25079 D AudioTrack: createTrack_l(): RelativeVolumeFeature, mStreamType -1, streamType 3, attributes: usage=1 content=2 flags=0x800 tags=[], percentage=1.000000 clientId=298
08-17 19:06:33.435 24986 25079 D AudioTrack: createTrack_l: RelativeVolumeFeature, mRelativePercentage:1.000000
08-17 19:06:33.440 24986 25079 W AudioTrack: Use of stream types is deprecated for operations other than volume control
08-17 19:06:33.440 24986 25079 W AudioTrack: See the documentation of AudioTrack() for what to use instead with android.media.AudioAttributes to qualify your playback use case
08-17 19:06:33.441 24986 24986 W Thread-27: type=1400 audit(0.0:14671): avc: denied { read } for name="u:object_r:vendor_mot_audio_fx_prop:s0" dev="tmpfs" ino=1329 scontext=u:r:untrusted_app:s0:c95,c257,c512,c768 tcontext=u:object_r:vendor_mot_audio_fx_prop:s0 tclass=file permissive=0 app=com.maxmpz.audioplayer.unlock
08-17 19:06:33.442 24986 25081 W dsp_thread.c: output resampler required, output:  ch=2 fmt=1 sr=48000 ch_lay=3
08-17 19:06:33.443 24986 25081 E libc    : Access denied finding property "persist.vendor.audio_fx.current"
08-17 19:06:33.454 24986 25081 I dsp_thread.c: creating DSP plugin: com.maxmpz.audioplayer/plugin.milk(8)
08-17 19:06:33.454 24986 25081 I dsp_thread.c: creating DSP plugin: com.maxmpz.audioplayer/plugin.tempo(14)
08-17 19:06:33.454 24986 25081 I dsp_thread.c: creating DSP plugin: com.maxmpz.audioplayer/plugin.reverb(15)
08-17 19:06:33.866 24986 24986 V MediaRouter: Selecting route: RouteInfo{ name=Headphones, description=null, status=null, category=RouteCategory{ name=System types=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO  groupable=false }, supportedTypes=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO , presentationDisplay=null }
08-17 19:06:33.867 24986 24986 V MediaRouter: Selecting route ignored,not new route
08-17 19:06:34.150 24986 24986 I MediaBrowserService: No root for client com.android.systemui from service android.service.media.MediaBrowserService$ServiceBinder$1
08-17 19:06:43.231 24986 24986 D AudioManager: dispatching onAudioFocusChange(-2) to android.media.AudioManager@d85a02dׅ.Tn@4bf243f
08-17 19:06:43.332 24986 15503 D AudioTrack: setVolume: RelativeVolumeFeature, mRelativePercentage:1.000000, left:0.000000, right:0.000000
08-17 19:06:47.057 24986 24986 V MediaRouter: Selecting route: RouteInfo{ name=Headphones, description=null, status=null, category=RouteCategory{ name=System types=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO  groupable=false }, supportedTypes=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO , presentationDisplay=null }
08-17 19:06:47.057 24986 24986 V MediaRouter: Selecting route ignored,not new route
08-17 19:06:47.412 24986 24986 D AudioManager: dispatching onAudioFocusChange(1) to android.media.AudioManager@d85a02dׅ.Tn@4bf243f
08-17 19:06:47.414 24986 15503 D AudioTrack: setVolume: RelativeVolumeFeature, mRelativePercentage:1.000000, left:1.000000, right:1.000000

 

 

photo_2022-08-17_19-05-00.jpg

Link to comment
Share on other sites

Depending on firmware, Android will not inform Poweramp about phone calls at all (recent Android versions). The only solution is to use Short Audio Focus option (which is enabled by default). Alternative is to request Phone permission, which is scary for some, and actually is not needed (as short audio focus works just fine).

Link to comment
Share on other sites

On 8/25/2022 at 9:10 PM, maxmp said:

Depending on firmware, Android will not inform Poweramp about phone calls at all (recent Android versions). The only solution is to use Short Audio Focus option (which is enabled by default). Alternative is to request Phone permission, which is scary for some, and actually is not needed (as short audio focus works just fine).

Well, I tried this but it's not pleasant to hear the music volume decreases on every Viber/Telegram etc message. That's why I'd prefer not changing the volume on messages but stop on phone calls (outgoing or incoming)

Interesting, that when I do an outgoing call Poweramp stops for milliseconds (so it definitely receives smth) but then starts play music even louder. And for incoming calls everything is ok

Surely, I can live with it (stopping music manually before making an outgoing call, but as I tested version 2 and it works ok for outgoing calls (stops music automatically)  maybe it can be fixed somehow in version 3?

If needed I can perform any testing for this

Link to comment
Share on other sites

  • 5 weeks later...
On 8/25/2022 at 9:10 PM, maxmp said:

Depending on firmware, Android will not inform Poweramp about phone calls at all (recent Android versions). The only solution is to use Short Audio Focus option (which is enabled by default). Alternative is to request Phone permission, which is scary for some, and actually is not needed (as short audio focus works just fine).

So, what is the difference between 2 and 3 version of Poweramp? As I said PowerAMP2 works correctly for outgoing calls

Link to comment
Share on other sites

On 9/29/2022 at 12:12 PM, andrewilley said:

Apart from the fact it is almost a complete re-code, about 10 Google SDK versions. Poweramp v2 stopped at Android KitKit (4.4).

Andre

I know that. Just wonder if it's possible to make v3 work the same way as v2 (on outgoing call)

Link to comment
Share on other sites

I do not know if it can help somehow but I've just checked 4 other audio players (taken from Play marker) and tested it for outgoing calls

Results

https://play.google.com/store/apps/details?id=media.music.mp3player.musicplayer - pausing on outgoing call
https://play.google.com/store/apps/details?id=music.musicplayer - pausing on outgoing call
https://play.google.com/store/apps/details?id=musicplayer.musicapps.music.mp3player - pausing on outgoing call

https://play.google.com/store/apps/details?id=music.musicplayer.mp3player.musicapps.musicdownloader behaves almost the same as Poweramp: freezes for a second and then continues playing (even higher that it used to be)

Does it say that the outgoing call issue can be resolved in Poweramp?

Edited by UltraMax
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...