Author Topic: Bass for android (Visual Studio 2015 xamarin)  (Read 755 times)

sitnuy

  • Posts: 14
i have added reference Bass.Net.Android.dll, and try to call BASS_Init() but app crushed with exception :System.TypeInitializationException: The type initializer for 'Un4seen.Bass.Bass' threw an exception.

radio42

  • Posts: 4573
Re: Bass for android (Visual Studio 2015 xamarin)
« Reply #1 on: 23 May '16 - 16:18 »
Which version of Bass.Net.Android are you using?
If not the latest v2.4.12.1 - please try that latest one.

sitnuy

  • Posts: 14
Re: Bass for android (Visual Studio 2015 xamarin)
« Reply #2 on: 23 May '16 - 20:18 »
still the same error.
maybe errors occurs because my apk file do not contain bass library?
but when i call BassNet.Registration or BassNet.InternalName. they working fine.
« Last Edit: 23 May '16 - 20:37 by sitnuy »

radio42

  • Posts: 4573
Re: Bass for android (Visual Studio 2015 xamarin)
« Reply #3 on: 24 May '16 - 08:10 »
Yes, you of course need to provide the native BASS libs as well!

sitnuy

  • Posts: 14
Re: Bass for android (Visual Studio 2015 xamarin)
« Reply #4 on: 24 May '16 - 09:26 »
but how to do this?
it should be bass.so or bass.dll?

radio42

  • Posts: 4573

sitnuy

  • Posts: 14
Re: Bass for android (Visual Studio 2015 xamarin)
« Reply #6 on: 24 May '16 - 17:59 »
now apk contains bass.so but it doesn't work.
when i call Bass.BASS_Init(-1, 44000, BASSInit.BASS_DEVICE_DEFAULT, IntPtr.Zero) app crushes
« Last Edit: 24 May '16 - 19:00 by sitnuy »

Ian @ un4seen

  • Administrator
  • Posts: 20389
Re: Bass for android (Visual Studio 2015 xamarin)
« Reply #7 on: 25 May '16 - 14:55 »
Do you have any info on the crash, ie. is there any error message?

sitnuy

  • Posts: 14
Re: Bass for android (Visual Studio 2015 xamarin)
« Reply #8 on: 25 May '16 - 17:49 »
i get this:  Unhandled Exception: System.TypeInitializationException: The type initializer for 'Un4seen.Bass.Bass' threw an exception.

Fabio

  • Posts: 3
Re: Bass for android (Visual Studio 2015 xamarin)
« Reply #9 on: 14 Oct '17 - 11:01 »
Hi,

I have your same problem.
Did you find a solution?
Otherwise this post can be useful for you and for me, I hope.

http://www.un4seen.com/forum/?topic=16365.msg113974;topicseen#msg113974