Skip to content

Instantly share code, notes, and snippets.

@bdach

bdach/Program.cs Secret

Last active September 2, 2020 16:48
Show Gist options
  • Save bdach/65541e5b8c412cfeb3dd1bb9e1080ee7 to your computer and use it in GitHub Desktop.
Save bdach/65541e5b8c412cfeb3dd1bb9e1080ee7 to your computer and use it in GitHub Desktop.
BASS minimal reproducer example
using System;
using System.Runtime.InteropServices;
namespace BassTestCSharp
{
public unsafe class Program
{
public static void Main(string[] args)
{
Console.WriteLine($"epsilon compared to 0 is: {double.Epsilon.CompareTo(0)}");
BASS_Init();
Console.WriteLine($"epsilon compared to 0 is: {double.Epsilon.CompareTo(0)}");
}
[DllImport("bass", EntryPoint = "BASS_Init")]
private static extern bool BASS_Init(int Device = -1, int Frequency = 44100, uint flags = 0x0, IntPtr win = default, IntPtr clsid = default);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment