MCPcopy Create free account
hub / github.com/brainflow-dev/brainflow / get_lib_name

Method get_lib_name

src/board_controller/muse/muse_bled.cpp:36–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36std::string MuseBLED::get_lib_name ()
37{
38 std::string muselib_path = "";
39 std::string muselib_name = "";
40 char muselib_dir[1024];
41 bool res = get_dll_path (muselib_dir);
42
43#ifdef _WIN32
44 if (sizeof (void *) == 4)
45 {
46 muselib_name = "MuseLib32.dll";
47 }
48 else
49 {
50 muselib_name = "MuseLib.dll";
51 }
52#endif
53#ifdef __linux__
54 muselib_name = "libMuseLib.so";
55#endif
56#ifdef __APPLE__
57 muselib_name = "libMuseLib.dylib";
58#endif
59
60 if (res)
61 {
62 muselib_path = std::string (muselib_dir) + muselib_name;
63 }
64 else
65 {
66 muselib_path = muselib_name;
67 }
68 return muselib_path;
69}
70
71int MuseBLED::prepare_session ()
72{

Callers

nothing calls this directly

Calls 1

get_dll_pathFunction · 0.85

Tested by

no test coverage detected