aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorPaul Adenot <[email protected]>2024-03-20 12:46:20 +0100
committerPaul Adenot <[email protected]>2024-03-20 12:51:34 +0100
commit1eb7e6824f2e7d683b99b7e79d8715b231a0781d (patch)
tree5033854591dfca419698928157bf107f524e6e33 /src
parentaaffe75c25c18bd171b60edc2d5a6f287a9f9808 (diff)
downloadcubeb-1eb7e6824f2e7d683b99b7e79d8715b231a0781d.tar.gz
cubeb-1eb7e6824f2e7d683b99b7e79d8715b231a0781d.zip
Fix mistake in first parameter type in function pointer
Diffstat (limited to 'src')
-rw-r--r--src/cubeb_wasapi.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cubeb_wasapi.cpp b/src/cubeb_wasapi.cpp
index b5546c3..b2e95be 100644
--- a/src/cubeb_wasapi.cpp
+++ b/src/cubeb_wasapi.cpp
@@ -205,7 +205,7 @@ struct auto_stream_ref {
};
using set_mm_thread_characteristics_function =
- decltype(&AvSetMmThreadCharacteristicsA);
+ decltype(&AvSetMmThreadCharacteristicsW);
using revert_mm_thread_characteristics_function =
decltype(&AvRevertMmThreadCharacteristics);
@@ -1414,7 +1414,7 @@ static unsigned int __stdcall wasapi_stream_render_loop(LPVOID stream)
/* We could consider using "Pro Audio" here for WebAudio and
maybe WebRTC. */
mmcss_handle =
- stm->context->set_mm_thread_characteristics("Audio", &mmcss_task_index);
+ stm->context->set_mm_thread_characteristics(L"Audio", &mmcss_task_index);
if (!mmcss_handle) {
/* This is not fatal, but we might glitch under heavy load. */
LOG("Unable to use mmcss to bump the render thread priority: %lx",
@@ -1536,7 +1536,7 @@ void
wasapi_destroy(cubeb * context);
HANDLE WINAPI
-set_mm_thread_characteristics_noop(const char *, LPDWORD mmcss_task_index)
+set_mm_thread_characteristics_noop(LPCWSTR, LPDWORD mmcss_task_index)
{
return (HANDLE)1;
}