Author Topic: Clicking noise during playback on Android device  (Read 229 times)

Olek

  • Posts: 18
On Android device we hear clicking in the sound. It's not acceptable in our app. We can't publish it to google play with clicking. There is no clicking in source files(mp3 files, 320 kbps, 44100 hz).

There is recording of output sound from Google Pixel XL:
https://1drv.ms/u/s!Apbz3scyLXODg6wen2MTAmCf5wz0GA

I initialize Bass with following parameters:
Bass.BASS_Init(-1, 44100, BASSInit.BASS_DEVICE_FREQ, IntPtr.Zero);

Please, let me know if you need something more from me.




Ian @ un4seen

  • Administrator
  • Posts: 20389
Re: Clicking noise during playback on Android device
« Reply #1 on: 18 Sep '17 - 18:08 »
Please confirm if you are making any config changes via BASS_SetConfig, and if so, which? In particular, are you changing the BASS_CONFIG_BUFFER or BASS_CONFIG_UPDATEPERIOD settings, and if so, does the problem also happen with the defaults? If you haven't already done so, you could try increasing the device buffer length via the BASS_CONFIG_DEV_BUFFER option and see if that helps; start at 40ms and then try 10ms increments from there. Note that changes take effect from the next BASS_Init call.

Code: [Select]
BASS_SetConfig(BASS_CONFIG_DEV_BUFFER, 40);

Also try removing the BASS_DEVICE_FREQ flag from the BASS_Init call, to have BASS use the device's native sample rate. You can use BASS_GetInfo to check what that is afterwards. You could also check whether it matches what this app detects:

   https://play.google.com/store/apps/details?id=com.levien.audiobuffersize

Olek

  • Posts: 18
Re: Clicking noise during playback on Android device
« Reply #2 on: 19 Sep '17 - 14:57 »
I didn't change any config values.

I replaced BASS_DEVICE_FREQ to BASS_DEVICE_DEFAULT, I added new line before Bass_Init call:

Bass.BASS_SetConfig(BASSConfig.BASS_CONFIG_DEV_BUFFER, 40);
Bass.BASS_Init(-1, 44100, BASSInit.BASS_DEVICE_DEFAULT, IntPtr.Zero);

and increased buffer size to 80ms by 10ms steps.
Didn't help.

I attached screenshot from app from your link.



Ian @ un4seen

  • Administrator
  • Posts: 20389
Re: Clicking noise during playback on Android device
« Reply #3 on: 20 Sep '17 - 13:24 »
OK, I will send you a debug version to get some more info on what's happening.

Olek

  • Posts: 18
Re: Clicking noise during playback on Android device
« Reply #4 on: 22 Sep '17 - 14:26 »
Have you sent debug version? Not sure where I can find it.

Ian @ un4seen

  • Administrator
  • Posts: 20389
Re: Clicking noise during playback on Android device
« Reply #5 on: 22 Sep '17 - 16:18 »
Yes, it was sent 20/9 to the email address in your forum profile. I've sent it again just now. If you don't see it in your inbox, also check your junk/spam folder. If it isn't in there either, do you have another email address that we could try? You can PM it to me, if so.

Olek

  • Posts: 18
Re: Clicking noise during playback on Android device
« Reply #6 on: 24 Sep '17 - 22:51 »
I found email in junk folder ::)
Thanks, we will reproduce issue and I will send log file.

By the way is it possible that issue is related to new android 8 Oreo?