-
-
Save bdach/65541e5b8c412cfeb3dd1bb9e1080ee7 to your computer and use it in GitHub Desktop.
BASS minimal reproducer example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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