Author Topic: BASS for Android  (Read 718952 times)

Ian @ un4seen

  • Administrator
  • Posts: 23932
Re: BASS for Android
« Reply #1875 on: 4 Aug '21 - 14:17 »
I'm unfamiliar with LibGDX, so unfortunately I won't be able to help with that. If it includes support for using native libraries then that should hopefully allow BASS to be used with it.

crossinu

  • Posts: 6
Re: BASS for Android
« Reply #1876 on: 6 Aug '21 - 05:10 »
I'm unfamiliar with LibGDX, so unfortunately I won't be able to help with that. If it includes support for using native libraries then that should hopefully allow BASS to be used with it.
Oh okay.

jnyang

  • Guest
Re: BASS for Android
« Reply #1877 on: 6 Aug '21 - 08:59 »
Oh yes, I'm able to reproduce that here too. It's an alignment issue in the tag/comment reading, which seems to have been caused by a compiler change from GCC (NDK 10e) to Clang (NDK 14b) in the latest BASSOPUS build. Here's an update built with NDK 16b, which seems to fix the problem...

The stuff build works well on both 32-bit and 64-bit ARM devices. Thanks for your quick update!

Ian @ un4seen

  • Administrator
  • Posts: 23932
Re: BASS for Android
« Reply #1878 on: 6 Aug '21 - 13:51 »
Great! The BASSOPUS update is up in the main Android BASS package now.

Version diff

  • Guest
Re: BASS for Android
« Reply #1879 on: 9 Aug '21 - 07:40 »
Hi, Where can I know the version difference on August 2?

Ian @ un4seen

  • Administrator
  • Posts: 23932
Re: BASS for Android
« Reply #1880 on: 9 Aug '21 - 13:55 »
That was the BASSOPUS update mentioned above.

artX

  • Guest
Re: BASS for Android
« Reply #1881 on: 11 Aug '21 - 14:41 »
having trouble loading a file with "BASS_Sampleload" like this in java.
Code: [Select]
int sample = BASS.BASS_SampleLoad(fileName, 0, 0, 8, BASS.BASS_SAMPLE_OVER_POS);

example above throws BASS_ERROR_FILEFORM while loading blank wav file. I tried loading same file with BASSTEST.exe too. I would appreciate any help. 😥

google drive link to the WAV file is as.
https://drive.google.com/file/d/1p962g1NrZ7B7tQxOVmTr7v6_DJrCFi-t/view?usp=sharing

Ian @ un4seen

  • Administrator
  • Posts: 23932
Re: BASS for Android
« Reply #1882 on: 11 Aug '21 - 16:51 »
BASS does currently reject empty WAV files (0 length "data" chunk). If you add any data to the file then it should become playable.

artX

  • Guest
Re: BASS for Android
« Reply #1883 on: 22 Aug '21 - 11:10 »
then... are there any methods to discriminate blank files other then error code 2 or a flag that allows BASS to accept blank files? I would very much appreciate any 😇

Ian @ un4seen

  • Administrator
  • Posts: 23932
Re: BASS for Android
« Reply #1884 on: 23 Aug '21 - 16:59 »
I'm afraid there isn't currently any way to detect if a WAV file was rejected specifically due to no data, but the BASS_ERROR_EMPTY error code could perhaps be used for that. I'll look into that for the next update.

Ian @ un4seen

  • Administrator
  • Posts: 23932
Re: BASS for Android
« Reply #1885 on: 8 Sep '21 - 15:02 »
A BASS update (2.4.16.7) is up now in the 1st post. Rather than giving a new error code for them, BASS_StreamCreateFile will now accept empty WAV files (might be useful for tag reading purposes). Note that BASS_SampleLoad will still fail (BASS_ERROR_EMPTY) with an empty file (of any format) though.

hamidi

  • Guest
Re: BASS for Android
« Reply #1886 on: 12 Sep '21 - 12:55 »
hi
how  can play local file from xamarin with this? Bass.ChannelPlay

Ian @ un4seen

  • Administrator
  • Posts: 23932
Re: BASS for Android
« Reply #1887 on: 23 Sep '21 - 15:13 »
The Android version of the BASSmix 2.4.11 release is up in the 1st post.

rrhh_fx

  • Posts: 22
Re: BASS for Android
« Reply #1888 on: 16 Oct '21 - 12:42 »
I am not able to load properly a SF2pack file

Code: [Select]
BASSMIDI.BASS_MIDI_FontInit(new BASS.Asset(getAssets(), packName), 0);

libbassflac.so and libbasswv.so are loaded. If using SF2 files, fonts are loaded properly. Any help is appreciated

EDIT: finally working. BASS_PluginLoad() was being called just before loading the font, and maybe that method works in a thread?
« Last Edit: 16 Oct '21 - 13:40 by rrhh_fx »

nelson13

  • Posts: 13
Re: BASS for Android
« Reply #1889 on: 17 Oct '21 - 17:08 »
Ah, it looks like the issue there is that BASS isn't currently decoding the filename (eg. converting %20 to a space) before sending it to the FTP server. Try using Android's URLDecoder class on the URL:

Code: [Select]
stream = BASS.BASS_StreamCreateURL(URLDecoder.decode(url), ...);
I keep having problems with some URLs

send a private message with an example