Use filebuf instead of ifstream in allafplay
[openal-soft.git] / core / helpers.h
blob96987a2e8743834beed7a7f01b69e766bfc2a80d
1 #ifndef CORE_HELPERS_H
2 #define CORE_HELPERS_H
4 #include <string>
5 #include <string_view>
6 #include <vector>
9 struct PathNamePair {
10 std::string path, fname;
12 const PathNamePair &GetProcBinary();
14 /* Mixing thread priority level */
15 inline int RTPrioLevel{1};
17 /* Allow reducing the process's RTTime limit for RTKit. */
18 inline bool AllowRTTimeLimit{true};
20 void SetRTPriority();
22 auto SearchDataFiles(const std::string_view ext) -> std::vector<std::string>;
23 auto SearchDataFiles(const std::string_view ext, const std::string_view subdir)
24 -> std::vector<std::string>;
26 #endif /* CORE_HELPERS_H */