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
e241c935
Commit
e241c935
authored
19 years ago
by
jpbl
Browse files
Options
Downloads
Patches
Plain Diff
correct uses of Manager singleton
parent
540cadec
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
configure.ac
+3
-4
3 additions, 4 deletions
configure.ac
src/audio/audiolayer.cpp
+3
-4
3 additions, 4 deletions
src/audio/audiolayer.cpp
with
6 additions
and
8 deletions
configure.ac
+
3
−
4
View file @
e241c935
...
...
@@ -92,11 +92,10 @@ dnl AC_SUBST(LIBQT)
if test $ac_cv_header_portaudio_h = no; then
AC_MSG_ERROR([*** missing portaudio.h. You need a working PortAudio installation. See http://www.portaudio.com])
fi
AC_CHECK_LIB([portaudio], [Pa_GetDeviceCount], [
else
portaudio_LIBS="-lportaudio "
portaudio_CFLAGS="-DAUDIO_PORTAUDIO "
],
[AC_MSG_ERROR([*** missing portaudio V19 library. You need a working PortAudio installation. See http://www.portaudio.com])])
portaudio_CFLAGS="-DAUDIO_PORTAUDIO "
fi
SFLPHONE_LIBS="$SFLPHONE_LIBS $portaudio_LIBS"
SFLPHONE_CXXFLAGS=="$SFLPHONE_CXXFLAGS $portaudio_CFLAGS"
...
...
This diff is collapsed.
Click to expand it.
src/audio/audiolayer.cpp
+
3
−
4
View file @
e241c935
...
...
@@ -201,9 +201,8 @@ AudioLayer::audioCallback (const void *inputBuffer, void *outputBuffer,
int
urgentAvail
,
// number of int16 right and int16 left
normalAvail
,
// number of int16 right and int16 left
micAvailPut
;
ManagerImpl
&
_manager
=
Manager
::
instance
();
unsigned
short
spkrVolume
=
_manager
.
getSpkrVolume
();
unsigned
short
micVolume
=
_manager
.
getMicVolume
();
unsigned
short
spkrVolume
=
Manager
::
instance
().
getSpkrVolume
();
unsigned
short
micVolume
=
Manager
::
instance
().
getMicVolume
();
// AvailForGet tell the number of chars inside the buffer
// framePerBuffer are the number of int16 for one channel (left)
...
...
@@ -217,7 +216,7 @@ AudioLayer::audioCallback (const void *inputBuffer, void *outputBuffer,
_mainSndRingBuffer
.
Discard
(
toGet
);
}
else
{
Tone
*
tone
=
_m
anager
.
getTelephoneTone
();
Tone
*
tone
=
M
anager
::
instance
()
.
getTelephoneTone
();
if
(
tone
!=
0
)
{
tone
->
getNext
(
out
,
framesPerBuffer
,
spkrVolume
);
}
else
{
...
...
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