Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Suyu
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
many-archive
Suyu
Commits
954144e2
There was an error fetching the commit references. Please try again later.
Commit
954144e2
authored
1 year ago
by
Liam
Browse files
Options
Downloads
Patches
Plain Diff
audio: allow more latency in cubeb initialization
parent
ada46973
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/audio_core/sink/cubeb_sink.cpp
+1
-6
1 addition, 6 deletions
src/audio_core/sink/cubeb_sink.cpp
src/audio_core/sink/sink_details.cpp
+2
-2
2 additions, 2 deletions
src/audio_core/sink/sink_details.cpp
with
3 additions
and
8 deletions
src/audio_core/sink/cubeb_sink.cpp
+
1
−
6
View file @
954144e2
...
...
@@ -364,7 +364,7 @@ bool IsCubebSuitable() {
}
#endif
//
Tes
t min latency
//
Ge
t min latency
cubeb_stream_params
params
{};
params
.
rate
=
TargetSampleRate
;
params
.
channels
=
2
;
...
...
@@ -380,11 +380,6 @@ bool IsCubebSuitable() {
}
latency
=
std
::
max
(
latency
,
TargetSampleCount
*
2
);
if
(
latency
>
TargetSampleCount
*
3
)
{
LOG_ERROR
(
Audio_Sink
,
"Cubeb latency is too high, it is not suitable."
);
return
false
;
}
// Test opening a device with standard parameters
cubeb_devid
output_device
{
0
};
cubeb_devid
input_device
{
0
};
...
...
This diff is collapsed.
Click to expand it.
src/audio_core/sink/sink_details.cpp
+
2
−
2
View file @
954144e2
...
...
@@ -83,8 +83,8 @@ const SinkDetails& GetOutputSinkDetails(Settings::AudioEngine sink_id) {
break
;
}
}
LOG_
ERROR
(
Service_Audio
,
"Auto-selecting the {} backend"
,
Settings
::
CanonicalizeEnum
(
iter
->
id
));
LOG_
INFO
(
Service_Audio
,
"Auto-selecting the {} backend"
,
Settings
::
CanonicalizeEnum
(
iter
->
id
));
}
else
{
if
(
iter
!=
std
::
end
(
sink_details
)
&&
!
iter
->
is_suitable
())
{
LOG_ERROR
(
Service_Audio
,
"Selected backend {} is not suitable, falling back to null"
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment