Author Topic: BASS for Android  (Read 417350 times)

kenumir

  • Posts: 7
Re: BASS for Android
« Reply #1425 on: 18 Jul '18 - 13:59 »
Problem with null pointer exception when init BASS:
Code: [Select]
java.lang.NullPointerException: Attempt to invoke interface method 'int com.android.internal.app.IAppOpsService.checkAudioOperation(int, int, int, java.lang.String)' on a null object reference
        at android.media.AudioTrack.isRestricted(AudioTrack.java:1602)
        at android.media.AudioTrack.play(AudioTrack.java:1580)
        at com.un4seen.bass.BASS.BASS_Init(BASS.java:-2)

Latest version from forum.

Ian @ un4seen

  • Administrator
  • Posts: 20909
Re: BASS for Android
« Reply #1426 on: 18 Jul '18 - 15:49 »
Please post your BASS_Init call, and also confirm what Android version you're running on and/or if you've reproduced the problem on multiple devices.

kenumir

  • Posts: 7
Re: BASS for Android
« Reply #1427 on: 18 Jul '18 - 22:20 »
Device:
Code: [Select]
Huawei Mate 8 (HUAWEI NXT-L09)
Android 6.0

Init:
Code: [Select]
BASS.BASS_Init(-1, 44100, BASS.BASS_DEVICE_FREQ | BASS.BASS_DEVICE_16BITS | BASS.BASS_DEVICE_AUDIOTRACK)
Cannot reproduce this on my devices. Came from bug report system. For now only once.