Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in / Register
Toggle navigation
J
jami-daemon
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
120
Issues
120
List
Boards
Labels
Milestones
Security & Compliance
Security & Compliance
Dependency List
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
savoirfairelinux
jami-daemon
Commits
e241c935
Commit
e241c935
authored
Oct 26, 2005
by
jpbl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
correct uses of Manager singleton
parent
540cadec
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
8 deletions
+6
-8
configure.ac
configure.ac
+3
-4
src/audio/audiolayer.cpp
src/audio/audiolayer.cpp
+3
-4
No files found.
configure.ac
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"
...
...
src/audio/audiolayer.cpp
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
=
_manager
.
getTelephoneTone
();
Tone
*
tone
=
Manager
::
instance
()
.
getTelephoneTone
();
if
(
tone
!=
0
)
{
tone
->
getNext
(
out
,
framesPerBuffer
,
spkrVolume
);
}
else
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment