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
9da45829
Commit
9da45829
authored
19 years ago
by
jpbl
Browse files
Options
Downloads
Patches
Plain Diff
Little cleanups
parent
56aebb88
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/audio/audiolayer.cpp
+6
-6
6 additions, 6 deletions
src/audio/audiolayer.cpp
src/audio/audiolayer.h
+1
-2
1 addition, 2 deletions
src/audio/audiolayer.h
src/managerimpl.cpp
+4
-4
4 additions, 4 deletions
src/managerimpl.cpp
with
11 additions
and
12 deletions
src/audio/audiolayer.cpp
+
6
−
6
View file @
9da45829
...
...
@@ -28,11 +28,11 @@
#include
"../global.h"
#include
"../manager.h"
AudioLayer
::
AudioLayer
(
ManagerImpl
&
manager
)
AudioLayer
::
AudioLayer
()
:
_urgentRingBuffer
(
SIZEBUF
)
,
_mainSndRingBuffer
(
SIZEBUF
)
,
_micRingBuffer
(
SIZEBUF
)
,
_stream
(
NULL
)
,
_manager
(
manager
)
,
_stream
(
NULL
)
{
_debugInit
(
" portaudio initialization..."
);
portaudio
::
System
::
initialize
();
...
...
@@ -102,7 +102,7 @@ void
AudioLayer
::
startStream
(
void
)
{
ost
::
MutexLock
guard
(
_mutex
);
if
(
_m
anager
.
isDriverLoaded
())
{
if
(
M
anager
::
instance
()
.
isDriverLoaded
())
{
if
(
_stream
&&
!
_stream
->
isActive
())
{
_debug
(
"Thread: start audiolayer stream
\n
"
);
_stream
->
start
();
...
...
@@ -114,7 +114,7 @@ void
AudioLayer
::
stopStream
(
void
)
{
ost
::
MutexLock
guard
(
_mutex
);
if
(
_m
anager
.
isDriverLoaded
())
{
if
(
M
anager
::
instance
()
.
isDriverLoaded
())
{
if
(
_stream
&&
!
_stream
->
isStopped
())
{
_debug
(
"Thread: stop audiolayer stream
\n
"
);
_stream
->
stop
();
...
...
@@ -195,8 +195,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
;
unsigned
short
spkrVolume
=
_m
anager
.
getSpkrVolume
();
unsigned
short
micVolume
=
_m
anager
.
getMicVolume
();
unsigned
short
spkrVolume
=
M
anager
::
instance
()
.
getSpkrVolume
();
unsigned
short
micVolume
=
M
anager
::
instance
()
.
getMicVolume
();
// AvailForGet tell the number of chars inside the buffer
// framePerBuffer are the number of int16 for one channel (left)
...
...
This diff is collapsed.
Click to expand it.
src/audio/audiolayer.h
+
1
−
2
View file @
9da45829
...
...
@@ -41,7 +41,7 @@ class RingBuffer;
class
AudioLayer
{
public:
AudioLayer
(
ManagerImpl
&
manager
);
AudioLayer
();
~
AudioLayer
(
void
);
void
listDevices
();
...
...
@@ -72,7 +72,6 @@ private:
portaudio
::
MemFunCallbackStream
<
AudioLayer
>
*
_stream
;
// portaudio::AutoSystem autoSys;
ost
::
Mutex
_mutex
;
ManagerImpl
&
_manager
;
int
NBCHARFORTWOINT16
;
};
...
...
This diff is collapsed.
Click to expand it.
src/managerimpl.cpp
+
4
−
4
View file @
9da45829
...
...
@@ -1144,7 +1144,7 @@ ManagerImpl::selectAudioDriver (void)
#if defined(AUDIO_PORTAUDIO)
try
{
_debugInit
(
" AudioLayer Creation"
);
_audiodriverPA
=
new
AudioLayer
(
*
this
);
_audiodriverPA
=
new
AudioLayer
();
int
noDevice
=
getConfigInt
(
AUDIO
,
DRIVER_NAME
);
_debugInit
(
" AudioLayer Device Count"
);
int
nbDevice
=
portaudio
::
System
::
instance
().
deviceCount
();
...
...
@@ -1199,7 +1199,7 @@ ManagerImpl::initVolume()
* Main Thread
*/
bool
ManagerImpl
::
getZeroconf
(
const
std
::
string
&
sequenceId
)
ManagerImpl
::
getZeroconf
(
const
std
::
string
&
)
{
bool
returnValue
=
false
;
#ifdef USE_ZEROCONF
...
...
@@ -1241,7 +1241,7 @@ ManagerImpl::getZeroconf(const std::string& sequenceId)
* Main Thread
*/
bool
ManagerImpl
::
attachZeroconfEvents
(
const
std
::
string
&
,
Pattern
::
Observer
&
observer
)
ManagerImpl
::
attachZeroconfEvents
(
const
std
::
string
&
,
Pattern
::
Observer
&
)
{
bool
returnValue
=
false
;
// don't need the _gui like getZeroconf function
...
...
@@ -1257,7 +1257,7 @@ ManagerImpl::attachZeroconfEvents(const std::string& , Pattern::Observer& observ
return
returnValue
;
}
bool
ManagerImpl
::
detachZeroconfEvents
(
Pattern
::
Observer
&
observer
)
ManagerImpl
::
detachZeroconfEvents
(
Pattern
::
Observer
&
)
{
bool
returnValue
=
false
;
#ifdef USE_ZEROCONF
...
...
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