13
0

Use translated error message for failing to set thread priorities in PortaudioBackend

This commit is contained in:
Tim Mayberry 2015-08-22 20:11:55 +10:00
parent ee77a7a883
commit 07f3dae936

View File

@ -661,7 +661,10 @@ PortAudioBackend::portaudio_process_thread (void *arg)
HANDLE task_handle;
mmcss::set_thread_characteristics ("Pro Audio", &task_handle);
mmcss::set_thread_priority (task_handle, mmcss::AVRT_PRIORITY_NORMAL);
if (!mmcss::set_thread_priority(task_handle, mmcss::AVRT_PRIORITY_NORMAL)) {
PBD::warning << get_error_string(SettingAudioThreadPriorityError)
<< endmsg;
}
#endif
DWORD tid = GetCurrentThreadId ();
@ -1380,7 +1383,10 @@ PortAudioBackend::main_process_thread ()
HANDLE task_handle;
mmcss::set_thread_characteristics ("Pro Audio", &task_handle);
mmcss::set_thread_priority (task_handle, mmcss::AVRT_PRIORITY_NORMAL);
if (!mmcss::set_thread_priority(task_handle, mmcss::AVRT_PRIORITY_NORMAL)) {
PBD::warning << get_error_string(SettingAudioThreadPriorityError)
<< endmsg;
}
#endif
DWORD tid = GetCurrentThreadId ();