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
38815300
Commit
38815300
authored
Jun 29, 2006
by
yanmorin
Browse files
Using const* pointer for SpeexMode (API 1.1) and dividing the tone sound by two
parent
7ea7ad4c
Changes
2
Show whitespace changes
Inline
Side-by-side
src/audio/CodecSpeex.h
View file @
38815300
...
...
@@ -39,7 +39,7 @@ private:
void
initSpeex
();
void
terminateSpeex
();
SpeexMode
*
_speexModePtr
;
const
SpeexMode
*
_speexModePtr
;
SpeexBits
_speex_dec_bits
;
SpeexBits
_speex_enc_bits
;
void
*
_speex_dec_state
;
...
...
src/audio/tone.cpp
View file @
38815300
...
...
@@ -117,7 +117,7 @@ Tone::genSin(int16 *buffer, int frequency1, int frequency2, int nb)
double
var2
=
(
double
)
2
*
(
double
)
M_PI
*
(
double
)
frequency2
/
(
double
)
_sampleRate
;
// softer
double
amp
=
(
double
)(
INT16_AMPLITUDE
>>
3
);
double
amp
=
(
double
)(
INT16_AMPLITUDE
>>
4
);
if
(
_nbChannel
==
2
)
{
// stereo
int
k
=
0
;
for
(
int
t
=
0
;
t
<
nb
;
t
++
)
{
...
...
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