Commit 951e1a30 authored by Alexandre Savard's avatar Alexandre Savard
Browse files

add framesize to codec, independant from audiolayer (#1143)

parent 59c6b0a0
......@@ -28,6 +28,7 @@ public:
: AudioCodec(payload, "PCMA")
{
_clockRate = 8000;
_frameSize = 160; // 20 ms at 8kHz
_channel = 1;
_bitrate = 64;
_bandwidth = 80;
......
......@@ -30,7 +30,7 @@ class Celt : public AudioCodec{
_celt_frame_size(128)
{
_clockRate = 44100;
_frameSize = 512;
_frameSize = 512; // fixed frameSize, TODO: support 64 to 512 frame size
_channel = 1;
_bitrate = 0;
_bandwidth = 0;
......
......@@ -36,6 +36,7 @@ class Speex : public AudioCodec{
_preprocess_state()
{
_clockRate = 8000;
_frameSize = 160; // 20 ms at 8kHz
_channel = 1;
_bitrate = 0;
_bandwidth = 0;
......
......@@ -36,6 +36,7 @@ class Speex : public AudioCodec{
_preprocess_state()
{
_clockRate = 16000;
_frameSize = 320; // 20 ms at 16 kHz
_channel = 1;
_bitrate = 0;
_bandwidth = 0;
......
......@@ -30,6 +30,7 @@ public:
: AudioCodec(payload, "PCMU")
{
_clockRate = 8000;
_frameSize = 160; // 20 ms at 8kHz
_channel = 1;
_bitrate = 64;
_bandwidth = 80;
......
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