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
c6ab5f05
Commit
c6ab5f05
authored
19 years ago
by
yanmorin
Browse files
Options
Downloads
Patches
Plain Diff
*** empty log message ***
parent
8c859fd7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
Makefile.am
+1
-1
1 addition, 1 deletion
Makefile.am
configure.ac
+1
-17
1 addition, 17 deletions
configure.ac
src/config/config.cpp
+9
-0
9 additions, 0 deletions
src/config/config.cpp
src/managerimpl.cpp
+4
-2
4 additions, 2 deletions
src/managerimpl.cpp
with
15 additions
and
20 deletions
Makefile.am
+
1
−
1
View file @
c6ab5f05
SUBDIRS
=
utilspp stund src ringtones
SUBDIRS
=
utilspp stund src ringtones
tools
This diff is collapsed.
Click to expand it.
configure.ac
+
1
−
17
View file @
c6ab5f05
...
...
@@ -90,23 +90,6 @@ SFLPHONE_LIBS="$SFLPHONE_LIBS $libexosip2_LIBS"
dnl AC_SUBST(LIBQT)
AC_MSG_CHECKING([whether to enable the new gui])
AC_ARG_ENABLE(newgui,
[ --enable-newgui Enable new gui code [default=no]],
[
AC_MSG_RESULT(yes)
newgui="yes"
],
[
AC_MSG_RESULT(no)
newgui="no"
]
)
AM_CONDITIONAL(NEWGUI_CODE, test x$newgui = xyes)
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
...
...
@@ -181,4 +164,5 @@ utilspp/functor/Makefile \
utilspp/singleton/Makefile \
stund/Makefile \
ringtones/Makefile \
tools/Makefile \
)
This diff is collapsed.
Click to expand it.
src/config/config.cpp
+
9
−
0
View file @
c6ab5f05
...
...
@@ -205,6 +205,15 @@ ConfigTree::populateFromFile(const std::string& fileName) {
file
.
close
();
return
2
;
}
// get length of file:
file
.
seekg
(
0
,
std
::
ios
::
end
);
int
length
=
file
.
tellg
();
file
.
seekg
(
0
,
std
::
ios
::
beg
);
if
(
length
==
0
)
{
file
.
close
();
return
2
;
// should load config
}
std
::
string
line
;
std
::
string
section
(
""
);
...
...
This diff is collapsed.
Click to expand it.
src/managerimpl.cpp
+
4
−
2
View file @
c6ab5f05
...
...
@@ -113,7 +113,6 @@ ManagerImpl::~ManagerImpl (void)
void
ManagerImpl
::
init
(
void
)
{
initZeroconf
();
initVolume
();
if
(
_exist
==
0
)
{
...
...
@@ -159,6 +158,7 @@ ManagerImpl::init (void)
}
}
initZeroconf
();
}
void
ManagerImpl
::
terminate
()
...
...
@@ -751,6 +751,8 @@ ManagerImpl::displayErrorText (CALLID id, const std::string& message)
{
if
(
_gui
)
{
_gui
->
displayErrorText
(
id
,
message
);
}
else
{
std
::
cerr
<<
message
<<
std
::
endl
;
}
}
...
...
@@ -1114,7 +1116,7 @@ ManagerImpl::selectAudioDriver (void)
_audiodriverPA
=
new
AudioLayer
(
*
this
);
int
noDevice
=
getConfigInt
(
AUDIO
,
DRIVER_NAME
);
int
nbDevice
=
portaudio
::
System
::
instance
().
deviceCount
();
if
(
nbDevice
==
0
)
{
if
(
nbDevice
==
0
)
{
throw
std
::
runtime_error
(
"Portaudio detect no sound card."
);
}
else
if
(
noDevice
>=
nbDevice
)
{
_debug
(
"Portaudio auto-select device #0 because device #%d is not found
\n
"
,
noDevice
);
...
...
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