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
9ebdc6ad
Commit
9ebdc6ad
authored
16 years ago
by
Emmanuel Milou
Browse files
Options
Downloads
Patches
Plain Diff
fix warnings in src/audio/codecs
parent
8005e39f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/audio/codecs/gsmcodec.cpp
+5
-1
5 additions, 1 deletion
src/audio/codecs/gsmcodec.cpp
src/audio/codecs/speexcodec.cpp
+10
-1
10 additions, 1 deletion
src/audio/codecs/speexcodec.cpp
with
15 additions
and
2 deletions
src/audio/codecs/gsmcodec.cpp
+
5
−
1
View file @
9ebdc6ad
...
...
@@ -30,7 +30,7 @@ extern "C"{
class
Gsm
:
public
AudioCodec
{
public:
// _payload should be 3
Gsm
(
int
payload
=
3
)
:
AudioCodec
(
payload
,
"GSM"
){
Gsm
(
int
payload
=
3
)
:
AudioCodec
(
payload
,
"GSM"
)
,
_decode_gsmhandle
(
NULL
),
_encode_gsmhandle
(
NULL
)
{
_clockRate
=
8000
;
_channel
=
1
;
_bitrate
=
13.3
;
...
...
@@ -42,6 +42,10 @@ public:
printf
(
"AudioCodec: ERROR: encode_gsm_create
\n
"
);
}
Gsm
(
const
Gsm
&
);
Gsm
&
operator
=
(
const
Gsm
&
);
virtual
~
Gsm
(
void
){
gsm_destroy
(
_decode_gsmhandle
);
gsm_destroy
(
_encode_gsmhandle
);
...
...
This diff is collapsed.
Click to expand it.
src/audio/codecs/speexcodec.cpp
+
10
−
1
View file @
9ebdc6ad
...
...
@@ -25,7 +25,13 @@
class
Speex
:
public
AudioCodec
{
public:
Speex
(
int
payload
=
0
)
:
AudioCodec
(
payload
,
"speex"
)
:
AudioCodec
(
payload
,
"speex"
),
_speexModePtr
(
NULL
),
_speex_dec_bits
(),
_speex_enc_bits
(),
_speex_dec_state
(),
_speex_enc_state
(),
_speex_frame_size
()
{
_clockRate
=
8000
;
_channel
=
1
;
...
...
@@ -34,6 +40,9 @@ public:
initSpeex
();
}
Speex
(
const
Speex
&
);
Speex
&
operator
=
(
const
Speex
&
);
void
initSpeex
()
{
/*
if (_clockRate < 16000 ) {
...
...
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