Author Topic: BASS for Android  (Read 354754 times)

Ionut Cristea

  • Posts: 1540
Re: BASS for Android
« Reply #1250 on: 12 Mar '17 - 18:52 »
  Hello Ian,

Code: [Select]
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'xiaomi/mido/mido:6.0.1/MMB29M/V8.1.15.0.MCFMIDI:user/release-keys'
Revision: '0'
ABI: 'arm'
pid: 2462, tid: 3056, name: Thread-1135 >>> com.surodev.suamp <<<
signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0x37313032
r0 37313032 r1 00000000 r2 00000000 r3 ffffffff
r4 37313032 r5 00000000 r6 00000000 r7 d9f5af28
r8 00000028 r9 00000000 sl 000003e8 fp abc6cbe8
ip f6ca7e40 sp d9f5ab18 lr f6d0ff83 pc f6d0ff16 cpsr 600e0030

backtrace:
#00 pc 00066f16 /system/lib/libcrypto.so
#01 pc 00066f7f /system/lib/libcrypto.so (X509_VERIFY_PARAM_free+6)
#02 pc 000182d7 /system/lib/libssl.so (SSL_free+10)
#03 pc 00011b09 /data/app/com.surodev.suamp-2/lib/arm/libbass.so
#04 pc 000123cf /data/app/com.surodev.suamp-2/lib/arm/libbass.so
#05 pc 0001a847 /data/app/com.surodev.suamp-2/lib/arm/libbass.so
#06 pc 0002776b /data/app/com.surodev.suamp-2/lib/arm/libbass.so (BASS_StreamCreateURL+62)
#07 pc 000278bf /data/app/com.surodev.suamp-2/lib/arm/libbass.so (Java_com_un4seen_bass_BASS_BASS_1StreamCreateURL+58)
#08 pc 00ef37d3 /data/app/com.surodev.suamp-2/oat/arm/base.odex (offset 0x8d1000)

Happens while trying to open a https stream in Android 6.0.

Best regards,
Ionut Cristea

Ian @ un4seen

  • Administrator
  • Posts: 19922
Re: BASS for Android
« Reply #1251 on: 13 Mar '17 - 16:25 »
What BASS version are you using, ie. what does BASS_GetVersion return? If it isn't the latest, please try upgrading and see if you still have the problem then.

Ian @ un4seen

  • Administrator
  • Posts: 19922
Re: BASS for Android
« Reply #1252 on: 31 Mar '17 - 15:07 »
The Android version of the BASSMIDI 2.4.11 release is now up in the 1st post.

diystar

  • Posts: 36
Re: BASS for Android
« Reply #1253 on: 17 Apr '17 - 12:07 »
How to change the aodio API from OpenSL to AudioTrack? Now Bass Lib causes white noise on Android 6.0 (I uses Delphi 10.1). When i uses TMediaPlayer, no noise arises.

Ian @ un4seen

  • Administrator
  • Posts: 19922
Re: BASS for Android
« Reply #1254 on: 17 Apr '17 - 16:31 »
Here's some code for using AudioTrack output:

   www.un4seen.com/forum/?topic=13225.msg118003#msg118003

You can also search for "AudioTrack" in this thread (using the box in the top-right) to find more code snippets.

Regarding the noise problem you're having with the Android 6 device, does using the BASS_DEVICE_16BITS flag in your BASS_Init call make any difference?

diystar

  • Posts: 36
Re: BASS for Android
« Reply #1255 on: 18 Apr '17 - 11:39 »
When i uses the BASS_DEVICE_16BITS flag, no noise arises again. Recommends to use the BASS_DEVICE_16BITS flag for default.