Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
J
jami-daemon
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
128
Issues
128
List
Boards
Labels
Service Desk
Milestones
Iterations
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Analytics
Analytics
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
savoirfairelinux
jami-daemon
Commits
7156cbb3
Commit
7156cbb3
authored
Aug 20, 2007
by
Alexandre Bourget
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Try to set rate correctly.
+ Add .gitignore
parent
a8002c48
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
1 deletion
+23
-1
.gitignore
.gitignore
+21
-0
src/audio/audiortp.cpp
src/audio/audiortp.cpp
+2
-1
No files found.
.gitignore
0 → 100644
View file @
7156cbb3
# Ignore unused objects
*.lo
*.o
*.a
*.la
*.Po
*.Plo
# Ignore rendered docs
doc/html
# Ignore buildsys stuff
autom4te.cache
# Ignore temp portaudio stuff
tools/portaudio
# Ignore temp files
*~
src/audio/audiortp.cpp
View file @
7156cbb3
...
...
@@ -362,6 +362,7 @@ AudioRtpRTX::receiveSessionForSpkr (int& countTime)
SFLDataFormat
*
toAudioLayer
;
int
nbSample
=
nbInt16
;
// 48000 / 8000 = 6 .. Samplerate will convert to 48000 ?!
int
nbSampleMaxRate
=
nbInt16
*
6
;
// TODO: change it
if
(
audiolayer
->
getSampleRate
()
!=
audiocodec
->
getClockRate
()
&&
nbSample
)
{
...
...
@@ -374,7 +375,7 @@ AudioRtpRTX::receiveSessionForSpkr (int& countTime)
src_data
.
data_in
=
_floatBuffer8000
;
src_data
.
data_out
=
_floatBuffer48000
;
src_data
.
input_frames
=
nbSample
;
src_data
.
output_frames
=
nbSample
MaxRate
;
src_data
.
output_frames
=
nbSample
*
audiolayer
->
getSample
()
/
audiocodec
->
getClockRate
()
;
src_data
.
src_ratio
=
factord
;
src_short_to_float_array
(
_receiveDataDecoded
,
_floatBuffer8000
,
nbSample
);
src_simple
(
&
src_data
,
SRC_SINC_BEST_QUALITY
/*SRC_SINC_MEDIUM_QUALITY*/
,
1
);
// 1=mono channel
...
...
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