Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
savoirfairelinux
jami-daemon
Commits
904b5dcb
Commit
904b5dcb
authored
Sep 30, 2008
by
Yun Liu
Browse files
Remove warnings under codecs and audioloop and samplecache
parent
644e3cee
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/audio/audioloop.cpp
View file @
904b5dcb
...
...
@@ -23,12 +23,8 @@
#include
"audioloop.h"
#include
<math.h>
AudioLoop
::
AudioLoop
()
AudioLoop
::
AudioLoop
()
:
_buffer
(
0
),
_size
(
0
),
_pos
(
0
),
_sampleRate
(
0
)
{
_buffer
=
0
;
_pos
=
0
;
_size
=
0
;
_sampleRate
=
0
;
}
AudioLoop
::~
AudioLoop
()
...
...
src/audio/codecs/gsmcodec.cpp
View file @
904b5dcb
...
...
@@ -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
(),
_encode_gsmhandle
()
{
_clockRate
=
8000
;
_channel
=
1
;
_bitrate
=
13.3
;
...
...
@@ -42,6 +42,18 @@ public:
printf
(
"AudioCodec: ERROR: encode_gsm_create
\n
"
);
}
// Copy Constructor
Gsm
(
const
Gsm
&
rh
)
:
AudioCodec
(
3
,
"GSM"
),
_decode_gsmhandle
(),
_encode_gsmhandle
()
/*: _clockRate(rh._clockRate), _channel(rh._channel), _bitrate(rh._bitrate), _bandwidth(rh._bandwidth) */
{
printf
(
"GSM copy constructor hasn't been implemented yet. Quit!"
);
exit
(
0
);
}
// Assignment Operator
Gsm
&
operator
=
(
const
Gsm
&
rh
){
printf
(
"GSM assignment operator hasn't been implemented yet. Quit!"
);
exit
(
0
);
}
virtual
~
Gsm
(
void
){
gsm_destroy
(
_decode_gsmhandle
);
gsm_destroy
(
_encode_gsmhandle
);
...
...
src/audio/codecs/speexcodec.cpp
View file @
904b5dcb
...
...
@@ -25,7 +25,7 @@
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
(
NULL
),
_speex_enc_state
(
NULL
),
_speex_frame_size
(
0
)
{
_clockRate
=
8000
;
_channel
=
1
;
...
...
@@ -34,6 +34,19 @@ public:
initSpeex
();
}
// Copy Constructor
Speex
(
const
Speex
&
rh
)
:
AudioCodec
(
0
,
"speex"
),
_speexModePtr
(
rh
.
_speexModePtr
),
_speex_dec_bits
(
rh
.
_speex_dec_bits
),
_speex_enc_bits
(
rh
.
_speex_enc_bits
),
_speex_dec_state
(
rh
.
_speex_dec_state
),
_speex_enc_state
(
rh
.
_speex_enc_state
),
_speex_frame_size
(
rh
.
_speex_frame_size
)
{
printf
(
"Speex copy constructor hasn't been implemented yet. Quit!"
);
exit
(
0
);
}
// Assignment Operator
Speex
&
operator
=
(
const
Speex
&
rh
){
printf
(
"Speex assignment operator hasn't been implemented yet. Quit!"
);
exit
(
0
);
}
void
initSpeex
()
{
/*
if (_clockRate < 16000 ) {
...
...
src/audio/samplecache.cpp
View file @
904b5dcb
...
...
@@ -19,9 +19,9 @@
#include
<samplecache.h>
SampleCache
::
SampleCache
(
pa_stream
*
s
)
SampleCache
::
SampleCache
(
pa_stream
*
s
)
:
_stream
(
s
)
{
_stream
=
s
;
//
_stream = s ;
}
SampleCache
::~
SampleCache
()
...
...
@@ -34,4 +34,5 @@ SampleCache::uploadSample( SFLDataFormat* buffer , size_t size )
{
//pa_stream_write( pulse->caching , buffer , size , pa_xfree, 0 , PA_SEEK_RELATIVE);
//pa_stream_finish_upload( pulse->caching );
return
true
;
}
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment