Author Topic: Bass for arm64  (Read 596 times)

daniel_rie

  • Posts: 4
Bass for arm64
« on: 13 Jan '24 - 10:13 »
Hello,

I would like to add the bass.dll library to a standard .net framework 4.8.1 wpf arm64 project.

The only arm lib I found was the UWP bass build, which cannot be used in non-uwp projects, because I cannot add the 2015 c++ runtime lib. After compiling, the program cannot find „bass.dll“.

Is there any way to build arm64 apps with the bass lib?

Thanks in advance!

Ian @ un4seen

  • Administrator
  • Posts: 26216
Re: Bass for arm64
« Reply #1 on: 15 Jan '24 - 15:21 »
There are arm64 Windows builds of BASS and a few add-ons available here:

   www.un4seen.com/stuff/bass24-arm64.zip

daniel_rie

  • Posts: 4
Re: Bass for arm64
« Reply #2 on: 6 Feb '24 - 10:12 »
Thank you! Are there any plans to release a ARM64 bassflac.dll?

Ian @ un4seen

  • Administrator
  • Posts: 26216
Re: Bass for arm64
« Reply #3 on: 6 Feb '24 - 17:42 »
A BASSFLAC build has been added to the package above, so please re-download to get it. Let me know if you have any trouble with it.

daniel_rie

  • Posts: 4
Re: Bass for arm64
« Reply #4 on: 15 Dec '24 - 20:51 »
Hi Ian,

I’m encountering issues with the files "bassmix.dll" and "bassenc.dll". These files are not being imported using the BASS_PluginLoadDirectory function, whether on x64 or arm64.

The call BassEnc.LoadMe(System.IO.Path.Combine(AppContext.BaseDirectory, pluginPath, "bassenc.dll")) returns false.

When I try to invoke a BassEnc function, I receive the following error: System.BadImageFormatException: 'An attempt was made to load a program with an incorrect format.'

Could you help me understand what I might be doing wrong?

Chris

  • Posts: 2221
Re: Bass for arm64
« Reply #5 on: 16 Dec '24 - 08:58 »
BASS_PluginLoad is for additional file format support and not for  bassmix.dll, bassenc.dll.
So you must load bassmix.dll, bassenc.dll as the same way as you load bass.dll.

Ian @ un4seen

  • Administrator
  • Posts: 26216
Re: Bass for arm64
« Reply #6 on: 16 Dec '24 - 16:25 »
When I try to invoke a BassEnc function, I receive the following error: System.BadImageFormatException: 'An attempt was made to load a program with an incorrect format.'

I think this means there's an architecture mismatch between your app and the DLL, eg. perhaps your app is arm64 but the BASSENC.DLL is x64?