Author Topic: Waveform & Visuals not Available in .net Standard/ .net core version of bass.net  (Read 411 times)

DividedSE

  • Posts: 4
While Converting my .net 4.8 Project to .net Core. I tried my Bass Class Library to .net standard 2.0 & later tried .net core 3.1 both time waveforms & visuals class are getting missing assemble reference error & bass.misc greyed out
 Is it not supported?

Ian @ un4seen

  • Administrator
  • Posts: 23743
I'm not a .Net user myself, so I'm not certain, but I believe it is correct that BASS.Net's WaveForm class isn't available with .Net Core because it doesn't support the APIs that the class uses.

radio42

  • Posts: 4718
Fully correct! WaveForm and Visuals rely in the default .Net implementation on GDI+ rendering, which doesn't exist for .Net core/standard.

DividedSE

  • Posts: 4
@radio42 I Can still use those functions (waveforms+visuals) properly in .net5.0 (maybe also in .netcore3.1) by just referencing to the v4.5 framework of bass.net.dll & system.drawing.common by microsoft via nuget.

Microsoft has released System.Drawing.Common to provide access to GDI+ graphics functionality cross-platform. Maybe an update to Bass.Net.dll for .core3.1/.net5.0 in future soon?

& Also no matter which type of bass.net.dll i used in framework/standard/core in .netcore/5 application bass.loadme() & bass.loadme(path) always returns false. But everything works fine other than that
« Last Edit: 4 Feb '21 - 12:21 by DividedSE »

radio42

  • Posts: 4718
Theoretically yes, but then I would need to build a version which always references those libs, which might not be wanted by many other users...
But...I think about this!

Andy09

  • Posts: 32
@Bernd
Oh, yes, please. I'm search since a few weeks for a solution to draw waveforms in .Net Standard and .Net Core.

Andy

radio42

  • Posts: 4718
It is not easy to add - but the drawing isn't that complex - so you might try yourself...?

Andy09

  • Posts: 32
It is not easy to add - but the drawing isn't that complex - so you might try yourself...?
Hi,

yes, is not easy to add in net standard, i know. But i have no idea to start the coding (GetStreamData and Draw Lines).
Have any one a simple idea/sample to do this in UWP oder WPF?

Andy

BaseHead

  • Posts: 179
Andy,
We made our own WF Drawing for BASS years ago as BASS.NET is limited to 2 channels and we needed 10-12 channel drawing and above.
We are going .NET5/6 soon from 4.8

I will gladly share you our C# code if you have the capabilities and think you can get it working in .NET5/Core and make a library out of it.
Then just hand it back to us so we can plug it in easily when we are ready to make the move to Core in the next few months..  ;-)
Scratch our back and we'll scratch yours....hehe

Interested?
send me your email if so so we can discuss it offline.  ;-)