Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
502f56b5
Commit
502f56b5
authored
2 months ago
by
ovari
Committed by
ovari
1 month ago
Browse files
Options
Downloads
Patches
Plain Diff
audiolayer.cpp: cleanup
Change-Id: Ib969e576919058468e88786adccbda9d672e7af4
parent
c308dc2c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/media/audio/audiolayer.cpp
+4
-4
4 additions, 4 deletions
src/media/audio/audiolayer.cpp
with
4 additions
and
4 deletions
src/media/audio/audiolayer.cpp
+
4
−
4
View file @
502f56b5
...
...
@@ -66,7 +66,7 @@ AudioLayer::~AudioLayer() {}
void
AudioLayer
::
hardwareFormatAvailable
(
AudioFormat
playback
,
size_t
bufSize
)
{
JAMI_LOG
(
"Hardware audio format available
: {:s} {}"
,
playback
.
toString
(),
bufSize
);
JAMI_LOG
(
"Hardware audio format available: {:s} {}"
,
playback
.
toString
(),
bufSize
);
audioFormat_
=
Manager
::
instance
().
hardwareAudioFormatChanged
(
playback
);
audioInputFormat_
.
sampleFormat
=
audioFormat_
.
sampleFormat
;
urgentRingBuffer_
.
setFormat
(
audioFormat_
);
...
...
@@ -76,7 +76,7 @@ AudioLayer::hardwareFormatAvailable(AudioFormat playback, size_t bufSize)
void
AudioLayer
::
hardwareInputFormatAvailable
(
AudioFormat
capture
)
{
JAMI_LOG
(
"Hardware input audio format available
: {:s}"
,
capture
.
toString
());
JAMI_LOG
(
"Hardware input audio format available: {:s}"
,
capture
.
toString
());
}
void
...
...
@@ -185,7 +185,7 @@ AudioLayer::createAudioProcessor()
unsigned
int
frame_size
;
if
(
pref_
.
getAudioProcessor
()
==
"speex"
)
{
// TODO: maybe force this to be equivalent to 20ms? as expected by
s
peex
// TODO: maybe force this to be equivalent to 20ms? as expected by
S
peex
frame_size
=
sample_rate
/
50u
;
}
else
{
frame_size
=
sample_rate
/
100u
;
...
...
@@ -212,7 +212,7 @@ AudioLayer::createAudioProcessor()
JAMI_WARN
(
"[audiolayer] using SpeexAudioProcessor"
);
audioProcessor
.
reset
(
new
SpeexAudioProcessor
(
formatForProcessor
,
frame_size
));
#else
JAMI_ERR
(
"[audiolayer] audioProcessor preference is
s
peex, but library not linked! "
JAMI_ERR
(
"[audiolayer] audioProcessor preference is
S
peex, but library not linked! "
"using null AudioProcessor instead"
);
audioProcessor
.
reset
();
#endif
...
...
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