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
b4784ab7
Commit
b4784ab7
authored
Feb 05, 2009
by
alexandresavard
Browse files
Speex audio codec preprocessing initialization
parent
f5c57cbf
Changes
6
Hide whitespace changes
Inline
Side-by-side
src/Makefile.am
View file @
b4784ab7
...
...
@@ -47,6 +47,7 @@ sflphoned_LDADD = \
@CCRTP_LIBS@
\
@ALSA_LIBS@
\
@PULSEAUDIO_LIBS@
\
-luuid
\
@SAMPLERATE_LIBS@
#sflphoned_LDFLAGS=-pg
...
...
src/audio/codecs/speexcodec.cpp
View file @
b4784ab7
...
...
@@ -22,6 +22,7 @@
#include
<cstdio>
#include
<speex/speex.h>
class
Speex
:
public
AudioCodec
{
public:
Speex
(
int
payload
=
0
)
...
...
src/plug-in/audiorecorder/audiorecord.cpp
View file @
b4784ab7
...
...
@@ -376,7 +376,7 @@ void AudioRecord::recData(SFLDataFormat* buffer_1, SFLDataFormat* buffer_2, int
}
}
byteCounter_
+=
(
unsigned
long
)(
nSamples_1
*
sizeof
(
SFLDataFormat
));
byteCounter_
+=
(
unsigned
long
)(
nSamples_1
*
sizeof
(
SFLDataFormat
));
printf
(
"AudioRecord::recData():: byteCounter_ : %i
\n
"
,(
int
)
byteCounter_
);
...
...
src/plug-in/audiorecorder/audiorecord.h
View file @
b4784ab7
...
...
@@ -23,7 +23,7 @@
#include
<sndfile.h>
#include
"global.h"
#include
"plug-in/plugin.h"
using
namespace
std
;
...
...
@@ -57,7 +57,7 @@ public:
void
setRecordingOption
(
std
::
string
name
,
FILE_TYPE
type
,
SOUND_FORMAT
format
,
int
sndSmplRate
);
/**
/**
* Check if no otehr file is opened, then create a new one
* @param fileName A string containing teh file (with/without extension)
* @param type The sound file format (FILE_RAW, FILE_WAVE)
...
...
test/Makefile.am
View file @
b4784ab7
...
...
@@ -47,6 +47,7 @@ configurationTester_LDADD = \
@DBUSCPP_LIBS@
\
@SAMPLERATE_LIBS@
\
$(PJSIP_LIBS)
\
-luuid
\
$(OBJECT_FILES)
pluginmanagerTester_LDADD
=
\
...
...
@@ -61,6 +62,7 @@ pluginmanagerTester_LDADD = \
@DBUSCPP_LIBS@
\
@SAMPLERATE_LIBS@
\
$(PJSIP_LIBS)
\
-luuid
\
$(OBJECT_FILES)
audiorecorderTester_LDADD
=
\
...
...
@@ -75,5 +77,6 @@ audiorecorderTester_LDADD = \
@DBUSCPP_LIBS@
\
@SAMPLERATE_LIBS@
\
$(PJSIP_LIBS)
\
-luuid
\
$(OBJECT_FILES)
test/audiorecorderTest.cpp
View file @
b4784ab7
...
...
@@ -32,6 +32,7 @@ void AudioRecorderTest::setUp(){
void
AudioRecorderTest
::
testRecordData
(){
/*
FILE_TYPE ft = FILE_WAV;
SOUND_FORMAT sf = INT16;
_ar->setSndSamplingRate(44100);
...
...
@@ -47,6 +48,7 @@ void AudioRecorderTest::testRecordData(){
}
_ar->closeFile();
*/
}
void
AudioRecorderTest
::
tearDown
(){
...
...
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