示例#1
0
        public BpmDetector()
        {
            try {
                handle = new HandleRef(this, bbd_new());

                progress_cb = new BpmDetectorProgressHandler(OnNativeProgress);
                bbd_set_progress_callback(handle, progress_cb);

                finished_cb = new BpmDetectorFinishedHandler(OnNativeFinished);
                bbd_set_finished_callback(handle, finished_cb);
            } catch (Exception e) {
                throw new ApplicationException(Catalog.GetString("Could not create BPM detection driver."), e);
            }
        }
示例#2
0
        public BpmDetector()
        {
            try {
                handle = new HandleRef (this, bbd_new ());

                progress_cb = new BpmDetectorProgressHandler (OnNativeProgress);
                bbd_set_progress_callback (handle, progress_cb);

                finished_cb = new BpmDetectorFinishedHandler (OnNativeFinished);
                bbd_set_finished_callback (handle, finished_cb);
            } catch (Exception e) {
                throw new ApplicationException (Catalog.GetString ("Could not create BPM detection driver."), e);
            }
        }
示例#3
0
 private static extern void bbd_set_finished_callback(HandleRef handle, BpmDetectorFinishedHandler callback);
示例#4
0
 private static extern void bbd_set_finished_callback(HandleRef handle, BpmDetectorFinishedHandler callback);