mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-08 16:58:38 +09:00
parent
4e119039ec
commit
606356d1f9
4 changed files with 0 additions and 40 deletions
|
|
@ -623,9 +623,6 @@ AudioCallbackDriver::Init()
|
|||
cubeb* cubebContext = CubebUtils::GetCubebContext();
|
||||
if (!cubebContext) {
|
||||
NS_WARNING("Could not get cubeb context.");
|
||||
if (!mFromFallback) {
|
||||
CubebUtils::ReportCubebStreamInitFailure(true);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -710,18 +707,11 @@ AudioCallbackDriver::Init()
|
|||
NS_WARNING_ASSERTION(
|
||||
rv == CUBEB_OK,
|
||||
"Could not set the audio stream volume in GraphDriver.cpp");
|
||||
CubebUtils::ReportCubebBackendUsed();
|
||||
} else {
|
||||
#ifdef MOZ_WEBRTC
|
||||
StaticMutexAutoUnlock unlock(AudioInputCubeb::Mutex());
|
||||
#endif
|
||||
NS_WARNING("Could not create a cubeb stream for MediaStreamGraph, falling back to a SystemClockDriver");
|
||||
// Only report failures when we're not coming from a driver that was
|
||||
// created itself as a fallback driver because of a previous audio driver
|
||||
// failure.
|
||||
if (!mFromFallback) {
|
||||
CubebUtils::ReportCubebStreamInitFailure(firstStream);
|
||||
}
|
||||
// Fall back to a driver using a normal thread. If needed,
|
||||
// the graph will try to re-open an audio stream later.
|
||||
MonitorAutoLock lock(GraphImpl()->GetMonitor());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue