mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-31 19:47:32 +09:00
parent
4e119039ec
commit
606356d1f9
4 changed files with 0 additions and 40 deletions
|
|
@ -239,31 +239,6 @@ cubeb* GetCubebContextUnlocked()
|
|||
return sCubebContext;
|
||||
}
|
||||
|
||||
void ReportCubebBackendUsed()
|
||||
{
|
||||
StaticMutexAutoLock lock(sMutex);
|
||||
|
||||
sAudioStreamInitEverSucceeded = true;
|
||||
|
||||
bool foundBackend = false;
|
||||
for (uint32_t i = 0; i < ArrayLength(AUDIOSTREAM_BACKEND_ID_STR); i++) {
|
||||
if (!strcmp(cubeb_get_backend_id(sCubebContext), AUDIOSTREAM_BACKEND_ID_STR[i])) {
|
||||
foundBackend = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void ReportCubebStreamInitFailure(bool aIsFirst)
|
||||
{
|
||||
StaticMutexAutoLock lock(sMutex);
|
||||
if (!aIsFirst && !sAudioStreamInitEverSucceeded) {
|
||||
// This machine has no audio hardware, or it's in really bad shape, don't
|
||||
// send this info, since we want CUBEB_BACKEND_INIT_FAILURE_OTHER to detect
|
||||
// failures to open multiple streams in a process over time.
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
uint32_t GetCubebPlaybackLatencyInMilliseconds()
|
||||
{
|
||||
StaticMutexAutoLock lock(sMutex);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue