diff --git a/playback_process.cpp b/playback_process.cpp index 1d26563..46a7625 100644 --- a/playback_process.cpp +++ b/playback_process.cpp @@ -25,6 +25,9 @@ #ifdef __WINDOWS__ #include #endif +#ifdef __HAIKU__ +#include +#endif #include #include "util.hpp" using namespace google::protobuf; @@ -396,6 +399,9 @@ PlaybackProcess::PlaybackProcess(PlaybackProcess *parent) { DEBUG.writeln("Host process address: (in-process)"); } PlaybackProcess::PlaybackProcess(std::vector args) { +#ifdef __HAIKU__ + set_thread_priority(find_thread(NULL), suggest_thread_priority(B_LIVE_AUDIO_MANIPULATION)); +#endif SDL_InitSubSystem(SDL_INIT_AUDIO); done = false; is_playback_process = true;