mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-09-18 01:12:41 -06:00
Externals: update cubeb to kinetiknz/cubeb@c2bd582
A bunch of changes, looks mainly like bug fixes and code cleanup. Notable changes: - `cubeb_get_min_latency`'s signature was changed to take params via pointer, requiring Dolphin code to be tweaked in two places. - A fix for kinetiknz/cubeb#320, as reported by @shuffle2 - Fixed build on FreeBSD (kinetiknz/cubeb#344), as contributed by @endrift
This commit is contained in:
14
Externals/cubeb/src/cubeb_log.cpp
vendored
14
Externals/cubeb/src/cubeb_log.cpp
vendored
@ -95,6 +95,12 @@ public:
|
||||
}
|
||||
}).detach();
|
||||
}
|
||||
// Tell the underlying queue the producer thread has changed, so it does not
|
||||
// assert in debug. This should be called with the thread stopped.
|
||||
void reset_producer_thread()
|
||||
{
|
||||
msg_queue.reset_thread_ids();
|
||||
}
|
||||
private:
|
||||
#ifndef _WIN32
|
||||
const struct timespec sleep_for = {
|
||||
@ -128,3 +134,11 @@ void cubeb_async_log(char const * fmt, ...)
|
||||
cubeb_async_logger::get().push(msg);
|
||||
va_end(args);
|
||||
}
|
||||
|
||||
void cubeb_async_log_reset_threads()
|
||||
{
|
||||
if (!g_cubeb_log_callback) {
|
||||
return;
|
||||
}
|
||||
cubeb_async_logger::get().reset_producer_thread();
|
||||
}
|
||||
|
Reference in New Issue
Block a user