public MainViewModel() { _ofd = new OpenFileDialog { Filter = "Playable files|*.mo3; *.xm; *.mod; *.s3m; *.it; *.mtm; *.mp3; *.mp2; *.mp1; *.ogg; *.wav; *.aif|All files|*.*" }; if (!Bass.Init()) { MessageBox.Show("Can't initialize device"); Application.Current.Shutdown(); } _progressProcedure = GetBPM_ProgressCallback; _beatProcedure = GetBeatPos_Callback; _bpmProcedure = GetBPM_Callback; OpenCommand = new DelegateCommand(OpenFile); }
public static extern bool BPMCallbackSet(int Handle, BPMProcedure Procedure, double Period, int MinMaxBPM, BassFlags Flags, IntPtr User = default(IntPtr));
public static extern bool BPMCallbackSet(int handle, BPMProcedure proc, double period, int minMaxBPM, BassFlags flags, IntPtr user);