Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
savoirfairelinux
jami-daemon
Commits
49078fd7
Commit
49078fd7
authored
Feb 10, 2009
by
alexandresavard
Browse files
Fix iax (incomplete)
parent
cf652d4a
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/iaxvoiplink.cpp
View file @
49078fd7
...
...
@@ -218,9 +218,10 @@ IAXVoIPLink::getEvent()
if
(
_nextRefreshStamp
&&
_nextRefreshStamp
-
2
<
time
(
NULL
))
{
sendRegister
(
""
);
}
if
(
call
)
call
->
recAudio
.
recData
(
spkrDataConverted
,
micData
,
nbSample_
,
nbSample_
);
if
(
call
){
printf
(
"IAXVoIPLink::getEvent() : nbSample_ %i
\n
"
,
nbSampleForRec_
*
sizeof
(
SFLDataFormat
));
call
->
recAudio
.
recData
(
spkrDataConverted
,
micData
,
nbSampleForRec_
*
sizeof
(
SFLDataFormat
),
nbSampleForRec_
*
sizeof
(
SFLDataFormat
));
}
// thread wait 3 millisecond
_evThread
->
sleep
(
3
);
free
(
event
);
...
...
@@ -287,6 +288,9 @@ IAXVoIPLink::sendAudioFromMic(void)
// Get bytes from micRingBuffer to data_from_mic
nbSample_
=
audiolayer
->
getMic
(
micData
,
bytesAvail
)
/
sizeof
(
SFLDataFormat
);
// Store the number of samples for recording
nbSampleForRec_
=
nbSample_
;
// resample
nbSample_
=
converter
->
downsampleData
(
micData
,
micDataConverted
,
(
int
)
ac
->
getClockRate
()
,
(
int
)
audiolayer
->
getSampleRate
()
,
nbSample_
);
...
...
src/iaxvoiplink.h
View file @
49078fd7
...
...
@@ -296,6 +296,9 @@ class IAXVoIPLink : public VoIPLink
/** number of sample */
int
nbSample_
;
/** number of sample before conversion (recording) */
int
nbSampleForRec_
;
};
#endif
src/managerimpl.h
View file @
49078fd7
...
...
@@ -443,7 +443,7 @@ class ManagerImpl {
* Set the recoding path in the configuration tree
* @param a string reresenting the path
*/
std
::
string
setRecord
ing
Path
(
const
std
::
string
);
void
setRecordPath
(
const
std
::
string
&
recPath
);
/**
* Tells if the user wants to display the dialpad or not
...
...
src/user_cfg.h
View file @
49078fd7
...
...
@@ -43,7 +43,7 @@
#define RING_CHOICE "Rings.ringChoice"
/** Ringtone */
#define VOLUME_SPKR "Volume.speakers"
/** Speaker volume */
#define VOLUME_MICRO "Volume.micro"
/** Mic volume */
#define RECORD_PATH "Record.path
/** Recording path */
#define RECORD_PATH "Record.path
"
/** Recording path */
#define VIDEO "Video"
/** Section Video */
...
...
Write
Preview
Supports
Markdown
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