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
e95c461c
Commit
e95c461c
authored
Sep 04, 2007
by
Alexandre Bourget
Browse files
Comments and cleanups.
parent
86343ef2
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/audio/audiortp.cpp
View file @
e95c461c
...
...
@@ -261,14 +261,14 @@ AudioRtpRTX::sendSessionFromMic(int timestamp)
// available bytes inside ringbuffer
int
availBytesFromMic
=
audiolayer
->
canGetMic
();
// take the lowe
r
// take the lowe
st
int
bytesAvail
=
(
availBytesFromMic
<
maxBytesToGet
)
?
availBytesFromMic
:
maxBytesToGet
;
//_debug("available = %d, maxBytesToGet = %d\n", availBytesFromMic, maxBytesToGet);
// Get bytes from micRingBuffer to data_from_mic
int
nbSample
=
audiolayer
->
getMic
(
_dataAudioLayer
,
bytesAvail
)
/
sizeof
(
SFLDataFormat
);
int16
*
toSIP
=
0
;
int16
*
toSIP
=
NULL
;
if
(
audiolayer
->
getSampleRate
()
!=
audiocodec
->
getClockRate
()
&&
nbSample
)
{
SRC_DATA
src_data
;
#ifdef DATAFORMAT_IS_FLOAT
...
...
@@ -331,7 +331,7 @@ AudioRtpRTX::sendSessionFromMic(int timestamp)
}
else
{
_session
->
putData
(
timestamp
,
_sendDataEncoded
,
compSize
);
}
toSIP
=
0
;
toSIP
=
NULL
;
}
catch
(...)
{
_debugException
(
"! ARTP: sending failed"
);
throw
;
...
...
src/iaxcall.h
View file @
e95c461c
...
...
@@ -51,7 +51,9 @@ public:
void
setFormat
(
int
format
);
/**
* Get format
* Get format for the voice codec used
*
* Bitmask for codecs defined in iax/frame.h
*/
int
getFormat
()
{
return
_format
;
}
...
...
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