managedbass / managedbass Goto Github PK
View Code? Open in Web Editor NEW.Net Wrapper for 'Bass' Audio Library
Home Page: https://github.com/ManagedBass/Home
License: Other
.Net Wrapper for 'Bass' Audio Library
Home Page: https://github.com/ManagedBass/Home
License: Other
I would like to contact you regarding some crashes we are seeing when using ManagedBass on a Linux dotnet core build. I am current in contact with Ian trying to track the issue. As I'm not as familiar with the code base and linux operating system, I'll attach his question to us:
It looks like the BASSmix library was unable to find the BASS_GetVersion function (which it calls internally). But it also looks like the BASS library is loaded, so I'm not sure why that happened. My guess would be that the BASS library wasn't loaded with global scope (RTLD_GLOBAL).
Is there any option regarding the scope of loaded libraries?
I am talking about this:
http://www.bass.radio42.com/help/html/64a22da2-8d31-66bd-b77c-a2159eaaacc2.htm
The application works just fine under Windows, but under linux (Ubuntu 19.10 , as well as Raspian Buster) crashes with the following output:
Stacktrace:
at <0xffffffff>
at (wrapper managed-to-native) ManagedBass.Bass.Init (int,int,ManagedBass.DeviceInitFlags,intptr,intptr) [0x00002] in <13ebafe14ff74b79b573a88d4b10a623>:0
at SharpFlappyBird.FlappyBird.SetupBASS () [0x000a5] in <9d38edb169fd4c2f953e2dfcaa75f995>:0
at SharpFlappyBird.FlappyBird..ctor (System.Windows.Forms.Control,System.Drawing.Image,System.Drawing.Image,System.Drawing.Image,System.Drawing.Image,System.Drawing.FontFamily,string,string,string) [0x0018b] in <9d38edb169fd4c2f953e2dfcaa75f995>:0
at SharpFlappyBird.FormMain..ctor () [0x000cd] in <9d38edb169fd4c2f953e2dfcaa75f995>:0
at (wrapper remoting-invoke-with-check) SharpFlappyBird.FormMain..ctor () [0x00018] in <9d38edb169fd4c2f953e2dfcaa75f995>:0
at SharpFlappyBird.Program.Main () [0x0000b] in <9d38edb169fd4c2f953e2dfcaa75f995>:0
at (wrapper runtime-invoke) object.runtime_invoke_void (object,intptr,intptr,intptr) [0x0004c] in :0
/proc/self/maps:
4128c000-4131c000 rwxp 00000000 00:00 0
415eb000-415fb000 rwxp 00000000 00:00 0
558b55281000-558b552ac000 r--p 00000000 08:05 4461277 /usr/bin/mono-sgen
558b552ac000-558b555a9000 r-xp 0002b000 08:05 4461277 /usr/bin/mono-sgen
558b555a9000-558b556d6000 r--p 00328000 08:05 4461277 /usr/bin/mono-sgen
558b556d7000-558b556de000 r--p 00455000 08:05 4461277 /usr/bin/mono-sgen
558b556de000-558b556e3000 rw-p 0045c000 08:05 4461277 /usr/bin/mono-sgen
558b556e3000-558b55774000 rw-p 00000000 00:00 0
558b57743000-558b57e5d000 rw-p 00000000 00:00 0 [heap]
7f6298000000-7f6298021000 rw-p 00000000 00:00 0
7f6298021000-7f629c000000 ---p 00000000 00:00 0
7f629c000000-7f629c021000 rw-p 00000000 00:00 0
7f629c021000-7f62a0000000 ---p 00000000 00:00 0
7f62a0000000-7f62a0026000 rw-p 00000000 00:00 0
7f62a0026000-7f62a4000000 ---p 00000000 00:00 0
7f62a4000000-7f62a4035000 rw-p 00000000 00:00 0
7f62a4035000-7f62a8000000 ---p 00000000 00:00 0
7f62a8000000-7f62a8021000 rw-p 00000000 00:00 0
7f62a8021000-7f62ac000000 ---p 00000000 00:00 0
7f62aca0c000-7f62aca0d000 ---p 00000000 00:00 0
7f62aca0d000-7f62aca0e000 rw-p 00000000 00:00 0
7f62aca0e000-7f62aca16000 ---p 00000000 00:00 0
7f62aca16000-7f62acc0d000 rw-p 00000000 00:00 0
7f62acc0d000-7f62acc0e000 ---p 00000000 00:00 0
7f62acc0e000-7f62acc0f000 rw-p 00000000 00:00 0
Memory around native instruction pointer (0x4b96):
Segmentation fault (core dumped)
I hope I'm missing something obvious...
MTOUCH: Error MT2101: Can't resolve the reference 'System.IntPtr ManagedBass.DynamicLibrary::Load(System.String,System.String)', referenced from the method 'System.Boolean ManagedBass.Fx.BassFx::Load(System.String)' in 'ManagedBass, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. (MT2101)
Yes I followed the instructions from the sample. I did modify it for BaseFX as well.
-gcc_flags "-L${ProjectDir} -lbass -lbass_fx -framework CFNetwork -framework AudioToolbox -framework SystemConfiguration -framework Accelerate -force_load ${ProjectDir}/libbass.a -force_load ${ProjectDir}/libbass_fx.a"
A BassException
should be thrown on BassError.
A bool property Extensions.ThrowsOnError
defaulted to false determines if exception is thrown in error.
I installed ManagedBase 2.0.3 via Package Manager and added the base.dll to the output directory.
Now I get
System.TypeLoadException: 'Could not load type 'ManagedBass.Bass' from assembly 'ManagedBass, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.'
when calling Bass.Init();
I tried different target platforms and versions, but to no avail.
How can I get the default playback and recording device names on Windows using ManagedBass?
Hi,
I use Bass.RecordStart() for Recording ,but I find if I change the Frequency to 16000, the sound would be
the mumble. So how to set the Frequency to 16000 rate with 16 bits in the right way?
how to use loopback recording in OSX platform or which library used for that.
Hi, we have an issue with changing effects once they are on the stream. We do it like this, which produces a basic echo. When changing the values of delay for example. It looks like there are no changes to the effect. Any idea?
Thanks.
EchoEffect effect = new EchoEffect();
private void ApplyEffects()
{
if (Stream != 0)
{
effect.ApplyOn(Stream, 10);
effect.Delay = delay;
effect.Feedback = feedback;
effect.WetMix = wetmix;
effect.DryMix = drymix;
effect.Stereo = stereo;
effect.Priority = 1;
effect.IsActive = active;
}
}
Can i move the "bass.dll" to another path?
if can,how to do that.
My bass_fx.dll
& bass.dll
are in the same directory as all my other libs. Mainly:
\bin\x86\Debug
And I try loading the bassfx lib with this code:
bool result = BassFx.Load();
And result is always false. It doesn't change even if I specifically put the folder path as the parameter. The result of this is that no effects, including the equalizer, work.
Mathew,
I found a crash in the Linux versions of PluginGetInfo and probably other places using Marshal.PtrToStringAnsi
The following example will crash if exts == IntPtr.Zero
public string FileExtensions => Marshal.PtrToStringAnsi(exts);
I'm contacting you for i'm not sure the best fit
Use Extensions.Ptr.ToStringUtf8, this has protection against ( IntPtr.Zero)
public string FileExtensions => Extensions.PtrToStringUtf8(exts);
Use a simple IntPtr.Zero check?
string FileExtensions => (exts != IntPtr.Zero) ? Marshal.PtrToStringAnsi(exts) : string.Empty;
Please advice of your recommended fix, and I will apply them to the code..
If the playback state of the stream is Paused
, calling ChannelGetLevelLeft
and ChannelGetLevelRight
will return 65535
and -1
respectively.
Calling code:
https://github.com/ppy/osu-framework/blob/1b479fb947da193f099df062f696b3a6164da9e0/osu.Framework/Audio/Track/TrackBass.cs#L105
I am getting these warnings on build, thought you should know:
[00:03:51] C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0000: [MarshalAs(UnmanagedType=ByValArray, ElementType=(Default))] with type 'ManagedBass.Tags.CartTimer[]' is not supported.This signature is located on 'ManagedBass.Tags.CartTag.PostTimer'.Additional information: Complex data structures such as arrays of structs in UnmanagedType.ByValArray are not currently supported. [C:\projects\breadplayer\BreadPlayer.Core\BreadPlayer.Core.csproj]
[00:03:51] C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method 'BASS_FX_GetVersion!bass_fx' in assembly 'ManagedBass.PInvoke, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs. [C:\projects\breadplayer\BreadPlayer.Core\BreadPlayer.Core.csproj]
[00:03:51] C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method 'TempoCreate!bass_fx' in assembly 'ManagedBass.PInvoke, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs. [C:\projects\breadplayer\BreadPlayer.Core\BreadPlayer.Core.csproj]
[00:03:52] C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method 'TempoGetSource!bass_fx' in assembly 'ManagedBass.PInvoke, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs. [C:\projects\breadplayer\BreadPlayer.Core\BreadPlayer.Core.csproj]
[00:03:52] C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method 'TempoGetRateRatio!bass_fx' in assembly 'ManagedBass.PInvoke, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs. [C:\projects\breadplayer\BreadPlayer.Core\BreadPlayer.Core.csproj]
[00:03:52] C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method 'ReverseCreate!bass_fx' in assembly 'ManagedBass.PInvoke, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs. [C:\projects\breadplayer\BreadPlayer.Core\BreadPlayer.Core.csproj]
[00:03:52] C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method 'ReverseGetSource!bass_fx' in assembly 'ManagedBass.PInvoke, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs. [C:\projects\breadplayer\BreadPlayer.Core\BreadPlayer.Core.csproj]
[00:03:52] C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method 'BPMDecodeGet!bass_fx' in assembly 'ManagedBass.PInvoke, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs. [C:\projects\breadplayer\BreadPlayer.Core\BreadPlayer.Core.csproj]
[00:03:52] C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method 'BPMCallbackSet!bass_fx' in assembly 'ManagedBass.PInvoke, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs. [C:\projects\breadplayer\BreadPlayer.Core\BreadPlayer.Core.csproj]
[00:03:52] C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method 'BPMCallbackReset!bass_fx' in assembly 'ManagedBass.PInvoke, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs. [C:\projects\breadplayer\BreadPlayer.Core\BreadPlayer.Core.csproj]
[00:03:52] C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method 'BPMFree!bass_fx' in assembly 'ManagedBass.PInvoke, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs. [C:\projects\breadplayer\BreadPlayer.Core\BreadPlayer.Core.csproj]
[00:03:52] C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method 'BPMBeatDecodeGet!bass_fx' in assembly 'ManagedBass.PInvoke, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs. [C:\projects\breadplayer\BreadPlayer.Core\BreadPlayer.Core.csproj]
[00:03:52] C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method 'BPMBeatCallbackSet!bass_fx' in assembly 'ManagedBass.PInvoke, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs. [C:\projects\breadplayer\BreadPlayer.Core\BreadPlayer.Core.csproj]
[00:03:52] C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method 'BPMBeatCallbackReset!bass_fx' in assembly 'ManagedBass.PInvoke, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs. [C:\projects\breadplayer\BreadPlayer.Core\BreadPlayer.Core.csproj]
[00:03:52] C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method 'BPMBeatSetParameters!bass_fx' in assembly 'ManagedBass.PInvoke, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs. [C:\projects\breadplayer\BreadPlayer.Core\BreadPlayer.Core.csproj]
[00:03:52] C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method 'BPMBeatGetParameters!bass_fx' in assembly 'ManagedBass.PInvoke, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs. [C:\projects\breadplayer\BreadPlayer.Core\BreadPlayer.Core.csproj]
[00:03:53] C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method 'BPMBeatFree!bass_fx' in assembly 'ManagedBass.PInvoke, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs. [C:\projects\breadplayer\BreadPlayer.Core\BreadPlayer.Core.csproj]
[00:03:53] C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method 'CreateStream!bassmidi' in assembly 'ManagedBass.PInvoke, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs. [C:\projects\breadplayer\BreadPlayer.Core\BreadPlayer.Core.csproj]
[00:03:53] C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method 'CreateStream!bassmidi' in assembly 'ManagedBass.PInvoke, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs. [C:\projects\breadplayer\BreadPlayer.Core\BreadPlayer.Core.csproj]
[00:03:53] C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method 'StreamEvent!bassmidi' in assembly 'ManagedBass.PInvoke, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs. [C:\projects\breadplayer\BreadPlayer.Core\BreadPlayer.Core.csproj]
[00:03:53] C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method 'StreamEvents!bassmidi' in assembly 'ManagedBass.PInvoke, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs. [C:\projects\breadplayer\BreadPlayer.Core\BreadPlayer.Core.csproj]
[00:03:53] C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method 'BASS_MIDI_StreamEvents!bassmidi' in assembly 'ManagedBass.PInvoke, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs. [C:\projects\breadplayer\BreadPlayer.Core\BreadPlayer.Core.csproj]
[00:03:53] C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method 'BASS_MIDI_StreamEvents!bassmidi' in assembly 'ManagedBass.PInvoke, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs. [C:\projects\breadplayer\BreadPlayer.Core\BreadPlayer.Core.csproj]
[00:03:53] C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method 'StreamGetChannel!bassmidi' in assembly 'ManagedBass.PInvoke, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs. [C:\projects\breadplayer\BreadPlayer.Core\BreadPlayer.Core.csproj]
[00:03:53] C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method 'StreamGetEvent!bassmidi' in assembly 'ManagedBass.PInvoke, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs. [C:\projects\breadplayer\BreadPlayer.Core\BreadPlayer.Core.csproj]
[00:03:53] C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method 'StreamGetEvents!bassmidi' in assembly 'ManagedBass.PInvoke, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs. [C:\projects\breadplayer\BreadPlayer.Core\BreadPlayer.Core.csproj]
[00:03:53] C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method 'StreamGetFonts!bassmidi' in assembly 'ManagedBass.PInvoke, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs. [C:\projects\breadplayer\BreadPlayer.Core\BreadPlayer.Core.csproj]
[00:03:53] C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method 'StreamGetFonts!bassmidi' in assembly 'ManagedBass.PInvoke, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs. [C:\projects\breadplayer\BreadPlayer.Core\BreadPlayer.Core.csproj]
[00:03:53] C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method 'BASS_MIDI_StreamGetFonts!bassmidi' in assembly 'ManagedBass.PInvoke, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs. [C:\projects\breadplayer\BreadPlayer.Core\BreadPlayer.Core.csproj]
[00:03:53] C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method 'StreamGetMark!bassmidi' in assembly 'ManagedBass.PInvoke, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs. [C:\projects\breadplayer\BreadPlayer.Core\BreadPlayer.Core.csproj]
[00:03:53] C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method 'StreamGetMarks!bassmidi' in assembly 'ManagedBass.PInvoke, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs. [C:\projects\breadplayer\BreadPlayer.Core\BreadPlayer.Core.csproj]
[00:03:53] C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method 'StreamLoadSamples!bassmidi' in assembly 'ManagedBass.PInvoke, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs. [C:\projects\breadplayer\BreadPlayer.Core\BreadPlayer.Core.csproj]
[00:03:53] C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method 'StreamSetFonts!bassmidi' in assembly 'ManagedBass.PInvoke, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs. [C:\projects\breadplayer\BreadPlayer.Core\BreadPlayer.Core.csproj]
[00:03:54] C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method 'BASS_MIDI_StreamSetFonts!bassmidi' in assembly 'ManagedBass.PInvoke, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs. [C:\projects\breadplayer\BreadPlayer.Core\BreadPlayer.Core.csproj]
[00:03:54] C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method 'BASS_MIDI_StreamCreateFile!bassmidi' in assembly 'ManagedBass.PInvoke, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs. [C:\projects\breadplayer\BreadPlayer.Core\BreadPlayer.Core.csproj]
[00:03:54] C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method 'BASS_MIDI_StreamCreateFile!bassmidi' in assembly 'ManagedBass.PInvoke, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs. [C:\projects\breadplayer\BreadPlayer.Core\BreadPlayer.Core.csproj]
[00:03:54] C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method 'BASS_MIDI_StreamCreateFileUser!bassmidi' in assembly 'ManagedBass.PInvoke, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs. [C:\projects\breadplayer\BreadPlayer.Core\BreadPlayer.Core.csproj]
[00:03:54] C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method 'BASS_MIDI_StreamCreateURL!bassmidi' in assembly 'ManagedBass.PInvoke, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs. [C:\projects\breadplayer\BreadPlayer.Core\BreadPlayer.Core.csproj]
[00:03:54] C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method 'FontCompact!bassmidi' in assembly 'ManagedBass.PInvoke, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs. [C:\projects\breadplayer\BreadPlayer.Core\BreadPlayer.Core.csproj]
[00:03:54] C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method 'FontFree!bassmidi' in assembly 'ManagedBass.PInvoke, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs. [C:\projects\breadplayer\BreadPlayer.Core\BreadPlayer.Core.csproj]
[00:03:54] C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method 'FontGetInfo!bassmidi' in assembly 'ManagedBass.PInvoke, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs. [C:\projects\breadplayer\BreadPlayer.Core\BreadPlayer.Core.csproj]
[00:03:54] C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method 'BASS_MIDI_FontGetPreset!bassmidi' in assembly 'ManagedBass.PInvoke, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs. [C:\projects\breadplayer\BreadPlayer.Core\BreadPlayer.Core.csproj]
[00:03:54] C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method 'FontGetPresets!bassmidi' in assembly 'ManagedBass.PInvoke, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs. [C:\projects\breadplayer\BreadPlayer.Core\BreadPlayer.Core.csproj]
[00:03:54] C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method 'FontGetVolume!bassmidi' in assembly 'ManagedBass.PInvoke, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs. [C:\projects\breadplayer\BreadPlayer.Core\BreadPlayer.Core.csproj]
[00:03:54] C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method 'BASS_MIDI_FontInit!bassmidi' in assembly 'ManagedBass.PInvoke, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs. [C:\projects\breadplayer\BreadPlayer.Core\BreadPlayer.Core.csproj]
[00:03:54] C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method 'FontInit!bassmidi' in assembly 'ManagedBass.PInvoke, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs. [C:\projects\breadplayer\BreadPlayer.Core\BreadPlayer.Core.csproj]
[00:03:54] C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method 'FontLoad!bassmidi' in assembly 'ManagedBass.PInvoke, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs. [C:\projects\breadplayer\BreadPlayer.Core\BreadPlayer.Core.csproj]
[00:03:54] C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method 'FontSetVolume!bassmidi' in assembly 'ManagedBass.PInvoke, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs. [C:\projects\breadplayer\BreadPlayer.Core\BreadPlayer.Core.csproj]
[00:03:54] C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method 'FontUnload!bassmidi' in assembly 'ManagedBass.PInvoke, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs. [C:\projects\breadplayer\BreadPlayer.Core\BreadPlayer.Core.csproj]
[00:03:54] C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method 'BASS_MIDI_FontUnpack!bassmidi' in assembly 'ManagedBass.PInvoke, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs. [C:\projects\breadplayer\BreadPlayer.Core\BreadPlayer.Core.csproj]
[00:03:55] C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method 'CreateSplitStream!bassmix' in assembly 'ManagedBass.PInvoke, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs. [C:\projects\breadplayer\BreadPlayer.Core\BreadPlayer.Core.csproj]
[00:03:55] C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method 'SplitStreamGetAvailable!bassmix' in assembly 'ManagedBass.PInvoke, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs. [C:\projects\breadplayer\BreadPlayer.Core\BreadPlayer.Core.csproj]
[00:03:55] C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method 'SplitStreamReset!bassmix' in assembly 'ManagedBass.PInvoke, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs. [C:\projects\breadplayer\BreadPlayer.Core\BreadPlayer.Core.csproj]
[00:03:55] C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method 'SplitStreamReset!bassmix' in assembly 'ManagedBass.PInvoke, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs. [C:\projects\breadplayer\BreadPlayer.Core\BreadPlayer.Core.csproj]
[00:03:55] C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method 'SplitStreamGetSource!bassmix' in assembly 'ManagedBass.PInvoke, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs. [C:\projects\breadplayer\BreadPlayer.Core\BreadPlayer.Core.csproj]
[00:03:55] C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method 'BASS_Split_StreamGetSplits!bassmix' in assembly 'ManagedBass.PInvoke, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs. [C:\projects\breadplayer\BreadPlayer.Core\BreadPlayer.Core.csproj]
[00:03:55] C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method 'CreateMixerStream!bassmix' in assembly 'ManagedBass.PInvoke, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs. [C:\projects\breadplayer\BreadPlayer.Core\BreadPlayer.Core.csproj]
[00:03:55] C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method 'MixerAddChannel!bassmix' in assembly 'ManagedBass.PInvoke, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs. [C:\projects\breadplayer\BreadPlayer.Core\BreadPlayer.Core.csproj]
[00:03:55] C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method 'MixerAddChannel!bassmix' in assembly 'ManagedBass.PInvoke, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs. [C:\projects\breadplayer\BreadPlayer.Core\BreadPlayer.Core.csproj]
[00:03:55] C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method 'MixerRemoveChannel!bassmix' in assembly 'ManagedBass.PInvoke, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs. [C:\projects\breadplayer\BreadPlayer.Core\BreadPlayer.Core.csproj]
[00:03:55] C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method 'ChannelFlags!bassmix' in assembly 'ManagedBass.PInvoke, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs. [C:\projects\breadplayer\BreadPlayer.Core\BreadPlayer.Core.csproj]
[00:03:55] C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method 'ChannelGetData!bassmix' in assembly 'ManagedBass.PInvoke, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs. [C:\projects\breadplayer\BreadPlayer.Core\BreadPlayer.Core.csproj]
[00:03:55] C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method 'ChannelGetData!bassmix' in assembly 'ManagedBass.PInvoke, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs. [C:\projects\breadplayer\BreadPlayer.Core\BreadPlayer.Core.csproj]
[00:03:55] C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method 'ChannelGetData!bassmix' in assembly 'ManagedBass.PInvoke, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs. [C:\projects\breadplayer\BreadPlayer.Core\BreadPlayer.Core.csproj]
[00:03:55] C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method 'ChannelGetData!bassmix' in assembly 'ManagedBass.PInvoke, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs. [C:\projects\breadplayer\BreadPlayer.Core\BreadPlayer.Core.csproj]
[00:03:55] C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method 'ChannelGetData!bassmix' in assembly 'ManagedBass.PInvoke, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs. [C:\projects\breadplayer\BreadPlayer.Core\BreadPlayer.Core.csproj]
[00:03:55] C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method 'ChannelGetLevel!bassmix' in assembly 'ManagedBass.PInvoke, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs. [C:\projects\breadplayer\BreadPlayer.Core\BreadPlayer.Core.csproj]
[00:03:55] C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method 'ChannelGetLevel!bassmix' in assembly 'ManagedBass.PInvoke, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs. [C:\projects\breadplayer\BreadPlayer.Core\BreadPlayer.Core.csproj]
[00:03:56] C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method 'ChannelGetMatrix!bassmix' in assembly 'ManagedBass.PInvoke, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs. [C:\projects\breadplayer\BreadPlayer.Core\BreadPlayer.Core.csproj]
[00:03:56] C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method 'ChannelGetMixer!bassmix' in assembly 'ManagedBass.PInvoke, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs. [C:\projects\breadplayer\BreadPlayer.Core\BreadPlayer.Core.csproj]
[00:03:56] C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method 'ChannelSetMatrix!bassmix' in assembly 'ManagedBass.PInvoke, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs. [C:\projects\breadplayer\BreadPlayer.Core\BreadPlayer.Core.csproj]
[00:03:56] C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method 'ChannelSetMatrix!bassmix' in assembly 'ManagedBass.PInvoke, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs. [C:\projects\breadplayer\BreadPlayer.Core\BreadPlayer.Core.csproj]
[00:03:56] C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method 'ChannelGetPosition!bassmix' in assembly 'ManagedBass.PInvoke, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs. [C:\projects\breadplayer\BreadPlayer.Core\BreadPlayer.Core.csproj]
[00:03:56] C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method 'ChannelGetPosition!bassmix' in assembly 'ManagedBass.PInvoke, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs. [C:\projects\breadplayer\BreadPlayer.Core\BreadPlayer.Core.csproj]
[00:03:56] C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method 'ChannelSetPosition!bassmix' in assembly 'ManagedBass.PInvoke, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs. [C:\projects\breadplayer\BreadPlayer.Core\BreadPlayer.Core.csproj]
[00:03:56] C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method 'BASS_Mixer_ChannelSetSync!bassmix' in assembly 'ManagedBass.PInvoke, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs. [C:\projects\breadplayer\BreadPlayer.Core\BreadPlayer.Core.csproj]
[00:03:56] C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method 'BASS_Mixer_ChannelSetSync!bassmix' in assembly 'ManagedBass.PInvoke, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs. [C:\projects\breadplayer\BreadPlayer.Core\BreadPlayer.Core.csproj]
[00:03:56] C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method 'BASS_Mixer_ChannelRemoveSync!bassmix' in assembly 'ManagedBass.PInvoke, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs. [C:\projects\breadplayer\BreadPlayer.Core\BreadPlayer.Core.csproj]
[00:03:56] C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method 'ChannelGetEnvelopePosition!bassmix' in assembly 'ManagedBass.PInvoke, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs. [C:\projects\breadplayer\BreadPlayer.Core\BreadPlayer.Core.csproj]
[00:03:56] C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method 'ChannelSetEnvelopePosition!bassmix' in assembly 'ManagedBass.PInvoke, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs. [C:\projects\breadplayer\BreadPlayer.Core\BreadPlayer.Core.csproj]
[00:03:56] C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0000: MCG : warning MCG0006: Unresolved P/Invoke method 'BASS_Mixer_ChannelSetEnvelope!bassmix' in assembly 'ManagedBass.PInvoke, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null' because it is not available in UWP applications. Please either use an another API , or use [DllImport(ExactSpelling=true) to indicate that you understand the implications of using non-UWP application APIs. [C:\projects\breadplayer\BreadPlayer.Core\BreadPlayer.Core.csproj]
I am using Raspian Buster and Dotnet Core 2.2 (C#) to play a single MP3 file. I have a method as follows:
public static void Siren()
{
// Init BASS using the default output device
if (Bass.Init())
{
// Create a stream from a file
var stream = Bass.CreateStream("/home/pi/clock/example.mp3");
if (stream != 0)
{
Console.WriteLine("Playing Siren");
var success = Bass.ChannelPlay(stream, true); // Play the stream
if (success)
{
Console.WriteLine("Playback complete");
}
else
{
Console.WriteLine("Playback Failed: " + Bass.LastError);
}
}
else
{
Console.WriteLine("Error: {0}!", Bass.LastError);
}
// Free the stream
Bass.StreamFree(stream);
// Free current device.
Bass.Free();
}
else
{
Console.WriteLine("BASS could not be initialized!");
}
}
On the console I get "Playing Siren" and "Playback complete" but no audio is heard. If I run from a command line "omxplayer /home/pi/clock/example.mp3" I get the appropriate audio (through HDMI output).
Any help appreciated.
Andrew
Expected values for these methods are 0 - 32768, but due to the way LoWord is implemented 32768 (max level) overflows to -32768.
Line at fault:
public static short LoWord(this int DWord) => (short)DWord;
I need to use ManagedBass.Midi to read from MIDI input devices, but the ManagedBass.Midi package does not expose any methods inside the MidiIn.cs file because it's hidden behind a compiler flag (__IOS__ || __DESKTOP__
). Is there any reasoning behind this? Can a separate package be published for desktop/iOS platforms that does have this enabled?
Using Nuget, I installed ManagedBass
(v2.0.4) and ManagedBass.Midi
(v2.0.0).
ManagedBass.Midi
(v2.0.0) references type ManagedBass.Plugin
, which is not available anymore in v2.0.4 of ManagedBass
.
To solve the issue, I installed v2.0.0 of ManagedBass
, instead of v2.0.4.
Any plans to update ManagedBass.Midi
and the other addons to be compatible with the latest ManagedBass
(v2.0.4) ?
.csproj
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<Content Include="logging.json" CopyToOutputDirectory="PreserveNewest" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Configuration.FileExtensions" Version="$(AspNetCoreVersion)" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="$(AspNetCoreVersion)" />
<PackageReference Include="Microsoft.Extensions.FileProviders.Physical" Version="$(AspNetCoreVersion)" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="2.0.0-preview1-final"/>
<PackageReference Include="CoreCompat.LibUsbDotNet" Version="2.2.8-r102"/>
<PackageReference Include="ManagedBass" Version="2.0.1"/>
</ItemGroup>
<ItemGroup>
<ContentWithTargetPath Include="drivers\bass.dll" TargetPath="\bass.dll" CopyToOutputDirectory="Always"/>
<ContentWithTargetPath Include="drivers\libusb0.sys" TargetPath="\libusb0.sys" CopyToOutputDirectory="Always"/>
<ContentWithTargetPath Include="drivers\libusb0.dll" TargetPath="\libusb0.dll" CopyToOutputDirectory="Always"/>
<ContentWithTargetPath Include="drivers\zadig-2.3.exe" TargetPath="\zadig-2.3.exe" CopyToOutputDirectory="Always"/>
</ItemGroup>
</Project>
bass.dll is being copied to the output directory correctly.
Fails at program start when trying to create the MediPlayer Class with error:
Unhandled Exception: System.TypeInitializationException: The type initializer for 'ManagedBass.MediaPlayer' threw an exceptio
n. ---> System.DllNotFoundException: Unable to load DLL 'bass': The specified module could not be found. (Exception from HRES
ULT: 0x8007007E)
at ManagedBass.Bass.BASS_GetDevice()
at ManagedBass.Bass.get_CurrentDevice()
at ManagedBass.MediaPlayer..cctor()
--- End of inner exception stack trace ---
at ManagedBass.MediaPlayer..ctor()
at part_tracker_service.Program..ctor() in C:\Users\adragose\Documents\Source\tooltracker\scanner_service\Program.cs:line
44
at part_tracker_service.Program.Main(String[] args) in C:\Users\adragose\Documents\Source\tooltracker\scanner_service\Prog
ram.cs:line 53
Hi,
I've done some initial investigation, and logged the findings on the Bass Forums:
http://www.un4seen.com/forum/?topic=18712.msg131029#msg131029
But there appears to be an issue with both Bass.NET and ManagedBass when PInvoking the:
methods on the BassMix library.
Under .NET Framework/Core 2.0-2.2 the method works as expected, and you're able to set a float[,] matrix.
Under .NET Core 3.0, the same call using the same float[,] appears to succeed (returns true), but if you immediately GET the matrix to check it's state, it appears to be zeroed out - and the audio playback is silenced.
Might be worth checking to see what response (if any) we get from Ian@Un4Seen or Radio42 before we propose a fix.
In my post of the Bass Forum above, I have a proposed a workaround - but it requires a breaking change, so it's not ideal.
Found: Both Share the Same Driver ID
Hi,
I tried to submit an application targeting Windows 10 UWP.
Note, this is not caught by the App Certification Kit, it is only detected in the submission review process.
All the ManagedBass API calls are reported having this error:
ManagedBassError.txt
...
API BASS_MIDI_FontCompact in bassmidi.dll is not supported for this application type. ManagedBass.PInvoke.dll calls this API.
...
See attached text file with the full report.
Hi, we are struggeling finding the source of this error:
It seems the Load method is not present in the libbassenc.so (17-7-2018) for Android but we are not sure where the problem resides. On iOS we don't have this issue.
Any ideas?
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(5,5): Error MSB4018: The "LinkAssemblies" task failed unexpectedly.
Mono.Linker.MarkException: Error processing method: 'System.Boolean ManagedBass.Enc.BassEnc::Load(System.String)' in assembly: 'ManagedBass.Enc.dll' ---> Mono.Cecil.ResolutionException: Failed to resolve System.IntPtr ManagedBass.DynamicLibrary::Load(System.String,System.String)
at Mono.Linker.Steps.MarkStep.HandleUnresolvedMethod (Mono.Cecil.MethodReference reference) [0x00013] in :0
at Mono.Linker.Steps.MarkStep.MarkMethod (Mono.Cecil.MethodReference reference) [0x0004a] in :0
at Mono.Linker.Steps.MarkStep.MarkInstruction (Mono.Cecil.Cil.Instruction instruction) [0x00040] in :0
at Mono.Linker.Steps.MarkStep.MarkMethodBody (Mono.Cecil.Cil.MethodBody body) [0x00098] in :0
at Mono.Linker.Steps.MarkStep.ProcessMethod (Mono.Cecil.MethodDefinition method) [0x00162] in :0
at Mono.Linker.Steps.MarkStep.ProcessQueue () [0x0001b] in :0
--- End of inner exception stack trace ---
at Mono.Linker.Steps.MarkStep.ProcessQueue () [0x00047] in :0
at Mono.Linker.Steps.MarkStep.ProcessPrimaryQueue () [0x0000a] in :0
at Mono.Linker.Steps.MarkStep.Process () [0x00102] in :0
at Mono.Linker.Steps.MarkStep.Process (Mono.Linker.LinkContext context) [0x0000d] in :0
at MonoDroid.Tuner.MonoDroidMarkStep.Process (Mono.Linker.LinkContext context) [0x0000b] in :0
at Mono.Linker.Pipeline.Process (Mono.Linker.LinkContext context) [0x0001c] in :0
at MonoDroid.Tuner.Linker.Run (Mono.Linker.Pipeline pipeline, Mono.Linker.LinkContext context) [0x00000] in :0
at MonoDroid.Tuner.Linker.Process (MonoDroid.Tuner.LinkerOptions options, Mono.Linker.ILogger logger, Mono.Linker.LinkContext& context) [0x00071] in :0
at Xamarin.Android.Tasks.LinkAssemblies.Execute (Java.Interop.Tools.Cecil.DirectoryAssemblyResolver res) [0x002d4] in :0
at Xamarin.Android.Tasks.LinkAssemblies.Execute () [0x0021f] in :0
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute () [0x00023] in /Users/builder/jenkins/workspace/build-package-osx-mono/2018-06/external/bockbuild/builds/msbuild-15/src/Build/BackEnd/TaskExecutionHost/TaskExecutionHost.cs:573
at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask (Microsoft.Build.BackEnd.ITaskExecutionHost taskExecutionHost, Microsoft.Build.BackEnd.Logging.TaskLoggingContext taskLoggingContext, Microsoft.Build.BackEnd.TaskHost taskHost, Microsoft.Build.BackEnd.ItemBucket bucket, Microsoft.Build.BackEnd.TaskExecutionMode howToExecuteTask) [0x001f6] in /Users/builder/jenkins/workspace/build-package-osx-mono/2018-06/external/bockbuild/builds/msbuild-15/src/Build/BackEnd/Components/RequestBuilder/TaskBuilder.cs:784 (MSB4018) (AppDroidv2)
I keep getting the error:
Install-Package : Could not install package 'ManagedBass.Wasapi 2.0.0'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.5', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.
"Install-Package : Package ManagedBass 1.0.2 is not compatible with netcoreapp1.1 (.NETCoreApp,Version=v1.1). Package ManagedBass 1.0.2 supports:"
When trying to open an AAC stream, for example:
http://listen.radionomy.com/7select-radio.m3u
I use this code in my .NET Standard library:
var handle = Bass.CreateStream(url, 0, BassFlags.StreamStatus | BassFlags.Float | BassFlags.AutoFree, StatusProc, new IntPtr(reqCounter));
// Try AAC
if (handle == 0)
{
handle = BassAac.CreateStream(url, 0, BassFlags.StreamStatus | BassFlags.Float | BassFlags.AutoFree, StatusProc, new IntPtr(reqCounter));
}
In the BassAAc.CreateStream... I get this exception;
05-26 20:09:08.379: E/AndroidRuntime(7278): Caused by: android.runtime.JavaProxyThrowable: System.TypeLoadException: Could not load type of field 'ManagedBass.Aac.BassAac:Plugin' (2) due to: Could not resolve type with token 0100000e (from typeref, class/assembly ManagedBass.Plugin, ManagedBass, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null) assembly:ManagedBass, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null type:ManagedBass.Plugin member:<none>
05-26 20:09:08.379: E/AndroidRuntime(7278): at MyApp.Cross.AudioEngine.PlayerService+<>c__DisplayClass50_0.<OpenURL>b__0 () [0x000f4] in <1a1456c613c741b1b1157b57c6c96f83>:0
05-26 20:09:08.379: E/AndroidRuntime(7278): at System.Threading.Tasks.Task.InnerInvoke () [0x0000f] in <d18287e1d683419a8ec3216fd78947b9>:0
05-26 20:09:08.379: E/AndroidRuntime(7278): at System.Threading.Tasks.Task.Execute () [0x00010] in <d18287e1d683419a8ec3216fd78947b9>:0
05-26 20:09:08.379: E/AndroidRuntime(7278): --- End of stack trace from previous location where exception was thrown ---
05-26 20:09:08.379: E/AndroidRuntime(7278): at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <d18287e1d683419a8ec3216fd78947b9>:0
05-26 20:09:08.379: E/AndroidRuntime(7278): at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <d18287e1d683419a8ec3216fd78947b9>:0
05-26 20:09:08.379: E/AndroidRuntime(7278): at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <d18287e1d683419a8ec3216fd78947b9>:0
05-26 20:09:08.379: E/AndroidRuntime(7278): at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <d18287e1d683419a8ec3216fd78947b9>:0
05-26 20:09:08.379: E/AndroidRuntime(7278): at System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in <d18287e1d683419a8ec3216fd78947b9>:0
05-26 20:09:08.379: E/AndroidRuntime(7278): at MyApp.Cross.AudioEngine.PlayerService+<OpenURL>d__50.MoveNext () [0x001ca] in <1a1456c613c741b1b1157b57c6c96f83>:0
A bit weird that an assembly with version 1.0.0.0 is mentioned, I have the latest v2.0.1 of ManagedBass and v2.0.0 of the ManagedBass.Aac referenced in both the .NET Standard lib and in the Android project.
Of course, both the libbass.so and libbass_aac.so are referenced as AndroidNativeLibrary in the Android project.
EDIT: Actually, no need to open a stream, doing a BassAac.Load(); is enough to cause:
05-26 20:53:23.730: E/mono-rt(10576): [ERROR] FATAL UNHANDLED EXCEPTION: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeLoadException: Could not resolve type with token 01000014 (from typeref, class/assembly ManagedBass.DynamicLibrary, ManagedBass, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null)
05-26 20:53:23.730: E/mono-rt(10576): at MyApp.Cross.AudioEngine.PlayerService.Init () [0x00001] in C:\Projects\MyApp\MyApp.Cross.AudioEngine\Services\PlayerService.cs:66
05-26 20:53:23.730: E/mono-rt(10576): at MyApp.Droid.Services.AndroidPlayerService.Init () [0x00001] in C:\Projects\MyApp\MyApp.Droid\Services\AndroidPlayerService.cs:377
05-26 20:53:23.730: E/mono-rt(10576): at MyApp.Droid.Services.PlayerServiceWrapper.Init () [0x00008] in C:\Projects\MyApp\MyApp.Droid\Services\PlayerServiceWrapper.cs:92
05-26 20:53:23.730: E/mono-rt(10576): at MyApp.Cross.ViewModels.ShellViewModel..ctor (MyApp.Interfaces.IPlayerService playerService, MyApp.Interfaces.IAlbumArtService albumArtService, MyApp.Interfaces.ITagHelper tagHelper, MyApp.Abstractions.Interfaces.ILogger logger, MyApp.Abstractions.Interfaces.IPlatformService platformService, MyApp.Abstractions.Interfaces.IStoreManager storeManager, MyApp.Interfaces.IFavoritesService favoritesService) [0x00083] in C:\Projects\MyApp\MyApp.Cross\ViewModels\ShellViewModel.cs:298
05-26 20:53:23.730: E/mono-rt(10576): at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (System.Reflection.MonoCMethod,object,object[],System.Exception&)
05-26 20:53:23.730: E/mono-rt(10576): at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) [0x00002] in <d18287e1d683419a8ec3216fd78947b9>:0
05-26 20:53:23.730: E/mono-rt(10576): --- End of inner exception stack trace ---
05-26 20:53:23.730: E/mono-rt(10576): at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) [0x00017] in <d18287e1d683419a8ec3216fd78947b9>:0
05-26 20:53:23.730: E/mono-rt(10576): at System.Reflection.MonoCMethod.DoInvoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0007a] in <d18287e1d683419a8ec3216fd78947b9>:0
05-26 20:53:23.730: E/mono-rt(10576): at System.Reflection.MonoCMethod.Invoke (System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <d18287e1d683419a8ec3216fd78947b9>:0
05-26 20:53:23.730: E/mono-rt(10576): at System.Reflection.ConstructorInfo.Invoke (System.Object[] parameters) [0x00000] in <d18287e1d683419a8ec3216fd78947b9>:0
05-26 20:53:23.730: E/mono-rt(10576): at GalaSoft.MvvmLight.Ioc.SimpleIoc.MakeInstance[TClass] () [0x00088] in D:\GalaSoft\mydotnet\MVVMLight\source\GalaSoft.MvvmLight\GalaSoft.MvvmLight.Extras (PCL)\Ioc\SimpleIoc.cs:732
05-26 20:53:23.730: E/mono-rt(10576): at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
05-26 20:53:23.730: E/mono-rt(10576): at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00032] in <d18287e1d683419a8ec3216fd78947b9>:0
05-26 20:53:23.730: E/mono-rt(10576): --- End of inner exception stack trace ---
05-26 20:53:23.730: E/mono-rt(10576): at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0004b] in <d18287e1d683419a8ec3216fd78947b9>:0
05-26 20:53:23.730: E/mono-rt(10576): at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <d18287e1d683419a8ec3216fd78947b9>:0
05-26 20:53:23.730: E/mono-rt(10576): at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x000e7] in <d18287e1d683419a8ec3216fd78947b9>:0
05-26 20:53:23.730: E/mono-rt(10576): at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00008] in <d18287e1d683419a8ec3216fd78947b9>:0
Any ideas?
Issue with FileProcedures class
Issue: Application eventually stalls and then crashes on Android (resulting in an Application not responding error eventually). This usually happens when samples are played at a rappid speed behind each other.
Test situation
In our test code we run over 850 samples in a Task.Run. We play the samples from an expansion pack, we use the StreamFileProcedures class en input it with:
foreach (var audiofile in samples) {
var fileAfd = files.GetAssetFileDescriptor(audiofile);
var streamAssetWrapper = new StreamFileProcedures(fileAfd.CreateInputStream(), fileAfd.Length);
var _stream = Bass.CreateStream(StreamSystem.Buffer, BassFlags.AutoFree, streamAssetWrapper);
Bass.ChannelPlay(_stream);
await Task.Delay(500);
StopStream(_stream);
await Task.Delay(500);
}
We use the tag AutoFree, the fileprocedures class states the following:
A copy is made of the FileProcedures callback function table, so it does not have to persist beyond this function call. Unlike Bass.Net, a reference to FileProcedures doesn't need to be held by you manually. ManagedBass automatically holds a reference and frees it when the Channel is freed
Suspected actual behaviour:
ManagedBass does not release the reference somewhere to the input stream, resulting in a leak?
Android log
12-03 14:04:15.324 6944 19145 E rs$DefaultThreadFactory: ===== Detect pool-thread leak =====
12-03 14:04:15.325 6944 25052 E rs$DefaultThreadFactory: ===== Detect pool-thread leak =====
12-03 14:04:15.325 6944 25052 E rs$DefaultThreadFactory: dalvik.system.VMStack.getThreadStackTrace(Native Method)
12-03 14:04:15.326 6944 25052 E rs$DefaultThreadFactory: java.lang.Thread.getStackTrace(Thread.java:1538)
12-03 14:04:15.326 6944 25052 E rs$DefaultThreadFactory: java.util.concurrent.Executors$DefaultThreadFactory.newThread(Executors.java:569)
12-03 14:04:15.326 6944 25052 E rs$DefaultThreadFactory: tdo.newThread(Unknown Source:9)
12-03 14:04:15.326 6944 25052 E rs$DefaultThreadFactory: java.util.concurrent.ThreadPoolExecutor$Worker.(ThreadPoolExecutor.java:636)
12-03 14:04:15.326 6944 25052 E rs$DefaultThreadFactory: java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:950)
12-03 14:04:15.326 6944 25052 E rs$DefaultThreadFactory: java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1393)
12-03 14:04:15.326 6944 25052 E rs$DefaultThreadFactory: sxs.a(:com.google.android.gms@[email protected] (100408-278422107):5)
12-03 14:04:15.326 6944 25052 E rs$DefaultThreadFactory: sxs.execute(:com.google.android.gms@[email protected] (100408-278422107):2)
12-03 14:04:15.326 6944 19145 E rs$DefaultThreadFactory: dalvik.system.VMStack.getThreadStackTrace(Native Method)
12-03 14:04:15.326 6944 25052 E rs$DefaultThreadFactory: brcf.execute(:com.google.android.gms@[email protected] (100408-278422107):1)
12-03 14:04:15.326 6944 19145 E rs$DefaultThreadFactory: java.lang.Thread.getStackTrace(Thread.java:1538)
12-03 14:04:15.326 6944 25052 E rs$DefaultThreadFactory: bqzs.b(:com.google.android.gms@[email protected] (100408-278422107):4)
12-03 14:04:15.326 6944 19145 E rs$DefaultThreadFactory: java.util.concurrent.Executors$DefaultThreadFactory.newThread(Executors.java:569)
12-03 14:04:15.326 6944 25052 E rs$DefaultThreadFactory: bqzs.a(:com.google.android.gms@[email protected] (100408-278422107):39)
12-03 14:04:15.326 6944 19145 E rs$DefaultThreadFactory: tdo.newThread(Unknown Source:9)
12-03 14:04:15.326 6944 25052 E rs$DefaultThreadFactory: bqzw.a(:com.google.android.gms@[email protected] (100408-278422107):2)
12-03 14:04:15.326 6944 19145 E rs$DefaultThreadFactory: java.util.concurrent.ThreadPoolExecutor$Worker.(ThreadPoolExecutor.java:636)
12-03 14:04:15.326 6944 25052 E rs$DefaultThreadFactory: betz.a(:com.google.android.gms@[email protected] (100408-278422107):5)
12-03 14:04:15.326 6944 19145 E rs$DefaultThreadFactory: java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:950)
12-03 14:04:15.326 6944 25052 E rs$DefaultThreadFactory: blnl.a(:com.google.android.gms@[email protected] (100408-278422107):2)
12-03 14:04:15.326 6944 19145 E rs$DefaultThreadFactory: java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1393)
12-03 14:04:15.326 6944 25052 E rs$DefaultThreadFactory: bqzu.a(:com.google.android.gms@[email protected] (100408-278422107):2)
12-03 14:04:15.326 6944 19145 E rs$DefaultThreadFactory: sxs.a(:com.google.android.gms@[email protected] (100408-278422107):5)
12-03 14:04:15.326 6944 19145 E rs$DefaultThreadFactory: sxs.execute(:com.google.android.gms@[email protected] (100408-278422107):2)
12-03 14:04:15.326 6944 19145 E rs$DefaultThreadFactory: brcq.execute(:com.google.android.gms@[email protected] (100408-278422107):8)
12-03 14:04:15.326 6944 19145 E rs$DefaultThreadFactory: brao.d(:com.google.android.gms@[email protected] (100408-278422107):1)
12-03 14:04:15.326 6944 19145 E rs$DefaultThreadFactory: brap.g(Unknown Source:4)
12-03 14:04:15.326 6944 19145 E rs$DefaultThreadFactory: braa.a(:com.google.android.gms@[email protected] (100408-278422107):12)
12-03 14:04:15.326 6944 19145 E rs$DefaultThreadFactory: bqzx.run(:com.google.android.gms@[email protected] (100408-278422107):2)
12-03 14:04:15.326 6944 19145 E rs$DefaultThreadFactory: braq.execute(Unknown Source:0)
12-03 14:04:15.326 6944 19145 E rs$DefaultThreadFactory: bqzs.b(:com.google.android.gms@[email protected] (100408-278422107):4)
12-03 14:04:15.326 6944 19145 E rs$DefaultThreadFactory: bqzs.a(:com.google.android.gms@[email protected] (100408-278422107):39)
12-03 14:04:15.326 6944 19145 E rs$DefaultThreadFactory: braa.d(:com.google.android.gms@[email protected] (100408-278422107):3)
12-03 14:04:15.326 6944 19145 E rs$DefaultThreadFactory: brap.(:com.google.android.gms@[email protected] (100408-278422107):2)
12-03 14:04:15.326 6944 19145 E rs$DefaultThreadFactory: brbj.a(:com.google.android.gms@[email protected] (100408-278422107):3)
12-03 14:04:15.326 6944 19145 E rs$DefaultThreadFactory: bewk.c(Unknown Source:22)
12-03 14:04:15.326 6944 19145 E rs$DefaultThreadFactory: bewk.a(:com.google.android.gms@[email protected] (100408-278422107):11)
12-03 14:04:15.327 6944 19145 E rs$DefaultThreadFactory: beuv.a(:com.google.android.gms@[email protected] (100408-278422107):13)
12-03 14:04:15.327 6944 19145 E rs$DefaultThreadFactory: beuv.a(:com.google.android.gms@[email protected] (100408-278422107):8)
12-03 14:04:15.327 6944 19145 E rs$DefaultThreadFactory: bcnh.a(Unknown Source:4)
12-03 14:04:15.327 6944 19145 E rs$DefaultThreadFactory: bcmr.a(:com.google.android.gms@[email protected] (100408-278422107):2)
12-03 14:04:15.327 6944 19145 E rs$DefaultThreadFactory: beik.a(:com.google.android.gms@[email protected] (100408-278422107):2)
12-03 14:04:15.327 6944 19145 E rs$DefaultThreadFactory: bqzu.a(:com.google.android.gms@[email protected] (100408-278422107):2)
12-03 14:04:15.327 6944 19145 E rs$DefaultThreadFactory: bqzw.run(:com.google.android.gms@[email protected] (100408-278422107):11)
12-03 14:04:15.327 6944 19145 E rs$DefaultThreadFactory: braq.execute(Unknown Source:0)
12-03 14:04:15.327 6944 19145 E rs$DefaultThreadFactory: bqzs.b(:com.google.android.gms@[email protected] (100408-278422107):4)
12-03 14:04:15.327 6944 19145 E rs$DefaultThreadFactory: bqzs.a(:com.google.android.gms@[email protected] (100408-278422107):39)
12-03 14:04:15.327 6944 19145 E rs$DefaultThreadFactory: bqzw.a(:com.google.android.gms@[email protected] (100408-278422107):2)
12-03 14:04:15.327 6944 19145 E rs$DefaultThreadFactory: brbb.a(:com.google.android.gms@[email protected] (100408-278422107):5)
12-03 14:04:15.327 6944 19145 E rs$DefaultThreadFactory: beii.a(:com.google.android.gms@[email protected] (100408-278422107):3)
12-03 14:04:15.327 6944 19145 E rs$DefaultThreadFactory: bqzu.a(:com.google.android.gms@[email protected] (100408-278422107):2)
12-03 14:04:15.326 6944 25052 E rs$DefaultThreadFactory: bqzw.run(:com.google.android.gms@[email protected] (100408-278422107):11)
12-03 14:04:15.327 6944 25052 E rs$DefaultThreadFactory: braq.execute(Unknown Source:0)
12-03 14:04:15.327 6944 25052 E rs$DefaultThreadFactory: bqzs.b(:com.google.android.gms@[email protected] (100408-278422107):4)
12-03 14:04:15.327 6944 25052 E rs$DefaultThreadFactory: bqzs.a(:com.google.android.gms@[email protected] (100408-278422107):39)
12-03 14:04:15.327 6944 25052 E rs$DefaultThreadFactory: bqzw.a(:com.google.android.gms@[email protected] (100408-278422107):2)
12-03 14:04:15.327 6944 25052 E rs$DefaultThreadFactory: betx.a(:com.google.android.gms@[email protected] (100408-278422107):7)
12-03 14:04:15.327 6944 25052 E rs$DefaultThreadFactory: blnj.a(:com.google.android.gms@[email protected] (100408-278422107):2)
12-03 14:04:15.327 6944 25052 E rs$DefaultThreadFactory: brav.a(:com.google.android.gms@[email protected] (100408-278422107):2)
12-03 14:04:15.327 6944 25052 E rs$DefaultThreadFactory: brcx.b(:com.google.android.gms@[email protected] (100408-278422107):2)
12-03 14:04:15.327 6944 25052 E rs$DefaultThreadFactory: brbw.run(:com.google.android.gms@[email protected] (100408-278422107):7)
12-03 14:04:15.327 6944 25052 E rs$DefaultThreadFactory: brcz.run(:com.google.android.gms@[email protected] (100408-278422107):1)
12-03 14:04:15.328 6944 25052 E rs$DefaultThreadFactory: sxr.b(:com.google.android.gms@[email protected] (100408-278422107):15)
12-03 14:04:15.328 6944 25052 E rs$DefaultThreadFactory: sxr.run(:com.google.android.gms@[email protected] (100408-278422107):10)
12-03 14:04:15.328 6944 25052 E rs$DefaultThreadFactory: java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
12-03 14:04:15.328 6944 25052 E rs$DefaultThreadFactory: java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
12-03 14:04:15.328 6944 25052 E rs$DefaultThreadFactory: tdp.run(Unknown Source:7)
12-03 14:04:15.328 6944 25052 E rs$DefaultThreadFactory: java.lang.Thread.run(Thread.java:764)
12-03 14:04:15.327 6944 19145 E rs$DefaultThreadFactory: bqzw.run(:com.google.android.gms@[email protected] (100408-278422107):11)
12-03 14:04:15.328 6944 19145 E rs$DefaultThreadFactory: braq.execute(Unknown Source:0)
12-03 14:04:15.328 6944 19145 E rs$DefaultThreadFactory: bqzs.b(:com.google.android.gms@[email protected] (100408-278422107):4)
12-03 14:04:15.328 6944 19145 E rs$DefaultThreadFactory: bqzs.a(:com.google.android.gms@[email protected] (100408-278422107):30)
12-03 14:04:15.328 6944 19145 E rs$DefaultThreadFactory: bqzs.b(:com.google.android.gms@[email protected] (100408-278422107):15)
12-03 14:04:15.328 6944 19145 E rs$DefaultThreadFactory: bqze.run(:com.google.android.gms@[email protected] (100408-278422107):2)
12-03 14:04:15.328 6944 19145 E rs$DefaultThreadFactory: braq.execute(Unknown Source:0)
12-03 14:04:15.328 6944 19145 E rs$DefaultThreadFactory: bqzs.b(:com.google.android.gms@[email protected] (100408-278422107):4)
12-03 14:04:15.328 6944 19145 E rs$DefaultThreadFactory: bqzs.a(:com.google.android.gms@[email protected] (100408-278422107):30)
12-03 14:04:15.328 6944 19145 E rs$DefaultThreadFactory: bqzs.b(:com.google.android.gms@[email protected] (100408-278422107):15)
12-03 14:04:15.328 6944 19145 E rs$DefaultThreadFactory: bqzv.a(:com.google.android.gms@[email protected] (100408-278422107):3)
12-03 14:04:15.328 6944 19145 E rs$DefaultThreadFactory: bqzw.run(:com.google.android.gms@[email protected] (100408-278422107):2)
12-03 14:04:15.329 6944 19145 E rs$DefaultThreadFactory: braq.execute(Unknown Source:0)
12-03 14:04:15.329 6944 19145 E rs$DefaultThreadFactory: bqzs.b(:com.google.android.gms@[email protected] (100408-278422107):4)
12-03 14:04:15.329 6944 19145 E rs$DefaultThreadFactory: bqzs.a(:com.google.android.gms@[email protected] (100408-278422107):30)
12-03 14:04:15.329 6944 19145 E rs$DefaultThreadFactory: bqzs.b(:com.google.android.gms@[email protected] (100408-278422107):8)
12-03 14:04:15.329 6944 19145 E rs$DefaultThreadFactory: brbk.run(Unknown Source:4)
12-03 14:04:15.329 6944 19145 E rs$DefaultThreadFactory: braq.execute(Unknown Source:0)
12-03 14:04:15.329 6944 19145 E rs$DefaultThreadFactory: bqzs.b(:com.google.android.gms@[email protected] (100408-278422107):4)
12-03 14:04:15.329 6944 19145 E rs$DefaultThreadFactory: bqzs.a(:com.google.android.gms@[email protected] (100408-278422107):30)
12-03 14:04:15.329 6944 19145 E rs$DefaultThreadFactory: bqzs.b(:com.google.android.gms@[email protected] (100408-278422107):8)
12-03 14:04:15.329 6944 19145 E rs$DefaultThreadFactory: brcx.a(:com.google.android.gms@[email protected] (100408-278422107):3)
12-03 14:04:15.329 6944 19145 E rs$DefaultThreadFactory: brbw.run(:com.google.android.gms@[email protected] (100408-278422107):2)
12-03 14:04:15.329 6944 19145 E rs$DefaultThreadFactory: brcz.run(:com.google.android.gms@[email protected] (100408-278422107):1)
12-03 14:04:15.329 6944 19145 E rs$DefaultThreadFactory: sxr.b(:com.google.android.gms@[email protected] (100408-278422107):15)
12-03 14:04:15.329 6944 19145 E rs$DefaultThreadFactory: sxr.run(:com.google.android.gms@[email protected] (100408-278422107):10)
12-03 14:04:15.329 6944 19145 E rs$DefaultThreadFactory: java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
12-03 14:04:15.329 6944 19145 E rs$DefaultThreadFactory: java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
12-03 14:04:15.329 6944 19145 E rs$DefaultThreadFactory: tdp.run(Unknown Source:7)
12-03 14:04:15.329 6944 19145 E rs$DefaultThreadFactory: java.lang.Thread.run(Thread.java:764)
StrictMode policy violation log
12-03 14:02:48.558 20640 20650 D StrictMode: StrictMode policy violation: android.os.strictmode.LeakedClosableViolation: A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource leaks.
12-03 14:02:48.558 20640 20650 D StrictMode: at android.os.StrictMode$AndroidCloseGuardReporter.report(StrictMode.java:1786)
12-03 14:02:48.558 20640 20650 D StrictMode: at dalvik.system.CloseGuard.warnIfOpen(CloseGuard.java:264)
12-03 14:02:48.558 20640 20650 D StrictMode: at android.os.ParcelFileDescriptor.finalize(ParcelFileDescriptor.java:988)
12-03 14:02:48.558 20640 20650 D StrictMode: at java.lang.Daemons$FinalizerDaemon.doFinalize(Daemons.java:250)
12-03 14:02:48.558 20640 20650 D StrictMode: at java.lang.Daemons$FinalizerDaemon.runInternal(Daemons.java:237)
12-03 14:02:48.558 20640 20650 D StrictMode: at java.lang.Daemons$Daemon.run(Daemons.java:103)
12-03 14:02:48.558 20640 20650 D StrictMode: at java.lang.Thread.run(Thread.java:764)
12-03 14:02:48.558 20640 20650 D StrictMode: Caused by: java.lang.Throwable: Explicit termination method 'close' not called
12-03 14:02:48.558 20640 20650 D StrictMode: at dalvik.system.CloseGuard.open(CloseGuard.java:221)
12-03 14:02:48.558 20640 20650 D StrictMode: at android.os.ParcelFileDescriptor.(ParcelFileDescriptor.java:192)
12-03 14:02:48.558 20640 20650 D StrictMode: at android.os.ParcelFileDescriptor.(ParcelFileDescriptor.java:181)
12-03 14:02:48.558 20640 20650 D StrictMode: at android.os.ParcelFileDescriptor.open(ParcelFileDescriptor.java:214)
12-03 14:02:48.558 20640 20650 D StrictMode: at com.google.android.vending.expansion.zipfile.ZipResourceFile$ZipEntryRO.getAssetFileDescriptor(ZipResourceFile.java:163)
12-03 14:02:48.558 20640 20650 D StrictMode: at com.google.android.vending.expansion.zipfile.ZipResourceFile.getAssetFileDescriptor(ZipResourceFile.java:228)
12-03 14:02:48.574 20640 20650 I chatty : uid=10395(nl.mediavibe.rpgsoundscapes) identical 6 lines
12-03 14:02:48.577 20640 20650 D StrictMode: StrictMode policy violation: android.os.strictmode.LeakedClosableViolation: A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource leaks.
12-03 14:02:48.577 20640 20650 D StrictMode: at android.os.StrictMode$AndroidCloseGuardReporter.report(StrictMode.java:1786)
12-03 14:02:48.577 20640 20650 D StrictMode: at dalvik.system.CloseGuard.warnIfOpen(CloseGuard.java:264)
12-03 14:02:48.577 20640 20650 D StrictMode: at android.os.ParcelFileDescriptor.finalize(ParcelFileDescriptor.java:988)
12-03 14:02:48.577 20640 20650 D StrictMode: at java.lang.Daemons$FinalizerDaemon.doFinalize(Daemons.java:250)
12-03 14:02:48.577 20640 20650 D StrictMode: at java.lang.Daemons$FinalizerDaemon.runInternal(Daemons.java:237)
12-03 14:02:48.577 20640 20650 D StrictMode: at java.lang.Daemons$Daemon.run(Daemons.java:103)
12-03 14:02:48.577 20640 20650 D StrictMode: at java.lang.Thread.run(Thread.java:764)
12-03 14:02:48.577 20640 20650 D StrictMode: Caused by: java.lang.Throwable: Explicit termination method 'close' not called
12-03 14:02:48.577 20640 20650 D StrictMode: at dalvik.system.CloseGuard.open(CloseGuard.java:221)
12-03 14:02:48.577 20640 20650 D StrictMode: at android.os.ParcelFileDescriptor.(ParcelFileDescriptor.java:192)
12-03 14:02:48.577 20640 20650 D StrictMode: at android.os.ParcelFileDescriptor.(ParcelFileDescriptor.java:181)
12-03 14:02:48.577 20640 20650 D StrictMode: at android.os.ParcelFileDescriptor.open(ParcelFileDescriptor.java:214)
12-03 14:02:48.577 20640 20650 D StrictMode: at com.google.android.vending.expansion.zipfile.ZipResourceFile$ZipEntryRO.getAssetFileDescriptor(ZipResourceFile.java:163)
12-03 14:02:48.577 20640 20650 D StrictMode: at com.google.android.vending.expansion.zipfile.ZipResourceFile.getAssetFileDescriptor(ZipResourceFile.java:228)
Hi, We are kinda lost here and hopefully you can shed some light on this issue.
We are getting the following error:
Our code:
// set the meta sync
Bass.ChannelSetSync(_stream, SyncFlags.End, 0, SampleFinished, IntPtr.Zero);
and the SampleFinished method:
private void SampleFinished(int Handle, int Channel, int Data, IntPtr User)
{
OnComplete?.Invoke();
if (loopState == false) SamplesPlayingCount--;
}
attempting to jit compile method wrapper
Any thoughts?
TX!
Need to make MidiEvent[] from IntPtr buffer returned in MidiInProcedure
ManagedBass on Linux throws an DllNotFoundException
when trying to run bass. I heard that you just have to compile the source. But allowing linux builds too via NuGet would be really nice.
I'm on Ubuntu 16.04
running the low latency kernel
, Mono JIT version 4.2.3
. Via MonoDevelop 5.10
Included bass files:
Steps to replicate:
So yeah, just a heads up! c:
Not sure if this is a managedBass issue or a libbass issue. I can build debug on device and simulator,
Ik can build release on simulator. But when I try to build release on device I get this error. (or archiving for publishing)
AppiOS/MTOUCH: Error MT3001: Could not AOT the assembly
/AppiOS/obj/iPhone/Release/mtouch-cache/64/Build/AppiOS.exe' (MT3001) (AppiOS)
Any idea's?
Thanks in advance.
Hi, I am creating some recording app which can record both the microphone and loopback devices
for (int i = 0; Bass.RecordGetDeviceInfo(i, out deviceInfo); i++)
{
Bass.RecordGetDeviceInfo(i, out deviceInfo)
if (deviceInfo.IsLoopback)
{
//work to do
}
else
{
//work to do
}
}
In 64bit version, it only returns microphone. But, in 32bit version of bass dll, it returned all devices.
Can you please suggest what is wrong?
DllMaps are used to map windows library names to other platform names on Mono.
Since, Xamarin is based on Mono, I expect that DllMap should be supported.
But, I don't own a Mac or an iPhone so I need help for testing that.
This, if possible, would allow single library to be used on all platforms.
Currently, the requirement to use DllImport("__Internal")
on iOS is an obstacle to the same.
As an example, for the main library, in App.config
:
<configuration>
<dllmap dll="bass" os="ios" target="__Internal"/>
</configuration>
If this succeeds, the .config
file MAY be distributed with the libraries in NuGet package.
Some Useful Links
Test Submission of an app using ManagedBass to:
This is caused by inappropriate/unnecessary use of IntPtr. IntPtr cannot be safely cast to Int32 and there is a good reason why the framework won't allow IntPtrs to be added together.
I'm looking for up-to-date samples of using ManagedBass in .NET Core but the ones I find use ManagedBass.PInvoke library which is now deprecated. Am I missing something?
Is it possible to update managedbass to support BASS.BASS_CONFIG_ANDROID_AAUDIO?
Thanks.
Sander
We are trying to stream to a shoutcast server with managedbass. We want to encode the stream with BassEnc_Mp3 but having trouble calling it. BassEnc_Ogg and BassEnc_Opus show up.
Any idea?
Thanks.
Sander
Function BassVst.GetInfo
does not work.
Looks like the strings in struct BassVstInfo
are not marshalled correctly.
In the unmanaged struct, the three strings are embedded directly in the struct.
This code works for me:
using SRI = System.Runtime.InteropServices;
[SRI.StructLayout (SRI.LayoutKind.Sequential)]
public struct bugfix_BassVstInfo {
const int StrLen = 80; // 80 bytes, not 80 chars
public int ChannelHandle, UniqueID;
[SRI.MarshalAs (SRI.UnmanagedType.ByValTStr, SizeConst = StrLen)] public string _EffectName; // = string.Empty;
public int EffectVersion, EffectVstVersion, HostVstVersion;
[SRI.MarshalAs (SRI.UnmanagedType.ByValTStr, SizeConst = StrLen)] public string _ProductName; // = string.Empty;
[SRI.MarshalAs (SRI.UnmanagedType.ByValTStr, SizeConst = StrLen)] public string _VendorName; // = string.Empty;
public int VendorVersion, ChansIn, ChansOut, InitialDelay;
[SRI.MarshalAs (SRI.UnmanagedType.Bool)] public bool HasEditor;
public int EditorWidth, EditorHeight;
public IntPtr AEffect; // = IntPtr.Zero;
[SRI.MarshalAs (SRI.UnmanagedType.Bool)] public bool IsInstrument;
public int DspHandle;
public string EffectName => _EffectName ?? string.Empty;
public string ProductName => _ProductName ?? string.Empty;
public string VendorName => _VendorName ?? string.Empty;
public override string ToString () => EffectName;
}
[SRI.DllImport ("bass_vst", EntryPoint = "BASS_VST_GetInfo")]
[return: SRI.MarshalAs (SRI.UnmanagedType.Bool)]
public static extern bool bugfix_BassVst_GetInfo (int vstHandle, out bugfix_BassVstInfo ret);
BassVstParamInfo seems to suffer from the same problem, but i have not tested that yet ..
Hi how do i accomplish playback of youtube audio and youtube playlists?
System.ExecutionEngineException: Attempting to JIT compile method '(wrapper native-to-managed) MusicPlayer.BassPlayer:OnFileClose (intptr)' while running in aot-only mode. See https://developer.xamarin.com/guides/ios/advanced_topics/limitations/ for more information.
at (wrapper managed-to-native) System.Object:__icall_wrapper_mono_delegate_to_ftnptr (object)
at (wrapper managed-to-native) ManagedBass.Bass:BASS_StreamCreateFileUser (ManagedBass.StreamSystem,ManagedBass.BassFlags,ManagedBass.FileProcedures,intptr)
at ManagedBass.Bass.CreateStream (ManagedBass.StreamSystem System, ManagedBass.BassFlags Flags, ManagedBass.FileProcedures Procedures, System.IntPtr User) [0x00000] in <71311c6a11824b2fa322046a464e4feb>:0
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.