| 34 | } |
| 35 | |
| 36 | std::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 | |
| 71 | int MuseBLED::prepare_session () |
| 72 | { |
nothing calls this directly
no test coverage detected