Commit b4784ab7 authored by alexandresavard's avatar alexandresavard
Browse files

Speex audio codec preprocessing initialization

parent f5c57cbf
...@@ -47,6 +47,7 @@ sflphoned_LDADD = \ ...@@ -47,6 +47,7 @@ sflphoned_LDADD = \
@CCRTP_LIBS@ \ @CCRTP_LIBS@ \
@ALSA_LIBS@ \ @ALSA_LIBS@ \
@PULSEAUDIO_LIBS@ \ @PULSEAUDIO_LIBS@ \
-luuid \
@SAMPLERATE_LIBS@ @SAMPLERATE_LIBS@
#sflphoned_LDFLAGS=-pg #sflphoned_LDFLAGS=-pg
......
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
#include <cstdio> #include <cstdio>
#include <speex/speex.h> #include <speex/speex.h>
class Speex : public AudioCodec{ class Speex : public AudioCodec{
public: public:
Speex(int payload=0) Speex(int payload=0)
......
...@@ -376,7 +376,7 @@ void AudioRecord::recData(SFLDataFormat* buffer_1, SFLDataFormat* buffer_2, int ...@@ -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_ ); printf("AudioRecord::recData():: byteCounter_ : %i \n",(int)byteCounter_ );
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
#include <sndfile.h> #include <sndfile.h>
#include "global.h" #include "global.h"
#include "plug-in/plugin.h"
using namespace std; using namespace std;
...@@ -57,7 +57,7 @@ public: ...@@ -57,7 +57,7 @@ public:
void setRecordingOption(std::string name, FILE_TYPE type, SOUND_FORMAT format, int sndSmplRate); 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 * Check if no otehr file is opened, then create a new one
* @param fileName A string containing teh file (with/without extension) * @param fileName A string containing teh file (with/without extension)
* @param type The sound file format (FILE_RAW, FILE_WAVE) * @param type The sound file format (FILE_RAW, FILE_WAVE)
......
...@@ -47,6 +47,7 @@ configurationTester_LDADD = \ ...@@ -47,6 +47,7 @@ configurationTester_LDADD = \
@DBUSCPP_LIBS@ \ @DBUSCPP_LIBS@ \
@SAMPLERATE_LIBS@ \ @SAMPLERATE_LIBS@ \
$(PJSIP_LIBS) \ $(PJSIP_LIBS) \
-luuid \
$(OBJECT_FILES) $(OBJECT_FILES)
pluginmanagerTester_LDADD = \ pluginmanagerTester_LDADD = \
...@@ -61,6 +62,7 @@ pluginmanagerTester_LDADD = \ ...@@ -61,6 +62,7 @@ pluginmanagerTester_LDADD = \
@DBUSCPP_LIBS@ \ @DBUSCPP_LIBS@ \
@SAMPLERATE_LIBS@ \ @SAMPLERATE_LIBS@ \
$(PJSIP_LIBS) \ $(PJSIP_LIBS) \
-luuid \
$(OBJECT_FILES) $(OBJECT_FILES)
audiorecorderTester_LDADD = \ audiorecorderTester_LDADD = \
...@@ -75,5 +77,6 @@ audiorecorderTester_LDADD = \ ...@@ -75,5 +77,6 @@ audiorecorderTester_LDADD = \
@DBUSCPP_LIBS@ \ @DBUSCPP_LIBS@ \
@SAMPLERATE_LIBS@ \ @SAMPLERATE_LIBS@ \
$(PJSIP_LIBS) \ $(PJSIP_LIBS) \
-luuid \
$(OBJECT_FILES) $(OBJECT_FILES)
...@@ -32,6 +32,7 @@ void AudioRecorderTest::setUp(){ ...@@ -32,6 +32,7 @@ void AudioRecorderTest::setUp(){
void AudioRecorderTest::testRecordData(){ void AudioRecorderTest::testRecordData(){
/*
FILE_TYPE ft = FILE_WAV; FILE_TYPE ft = FILE_WAV;
SOUND_FORMAT sf = INT16; SOUND_FORMAT sf = INT16;
_ar->setSndSamplingRate(44100); _ar->setSndSamplingRate(44100);
...@@ -47,6 +48,7 @@ void AudioRecorderTest::testRecordData(){ ...@@ -47,6 +48,7 @@ void AudioRecorderTest::testRecordData(){
} }
_ar->closeFile(); _ar->closeFile();
*/
} }
void AudioRecorderTest::tearDown(){ void AudioRecorderTest::tearDown(){
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment