mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-08 12:34:53 +00:00
restructure codec code
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1818 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
e9fc56225f
commit
2838ad4a9b
12 files changed
+123
-64
No files matched your search
@@ -90,6 +90,7 @@ static switch_status_t switch_raw_destroy(switch_codec_t *codec)
|
||||
}
|
||||
|
||||
static const switch_codec_implementation_t raw_32k_implementation = {
|
||||
/*.codec_type */ SWITCH_CODEC_TYPE_AUDIO,
|
||||
/*.ianacode */ 10,
|
||||
/*.iananame */ "L16",
|
||||
/*.samples_per_second = */ 32000,
|
||||
@@ -108,6 +109,7 @@ static const switch_codec_implementation_t raw_32k_implementation = {
|
||||
};
|
||||
|
||||
static const switch_codec_implementation_t raw_22k_implementation = {
|
||||
/*.codec_type */ SWITCH_CODEC_TYPE_AUDIO,
|
||||
/*.ianacode */ 10,
|
||||
/*.iananame */ "L16",
|
||||
/*.samples_per_second = */ 22050,
|
||||
@@ -127,6 +129,7 @@ static const switch_codec_implementation_t raw_22k_implementation = {
|
||||
};
|
||||
|
||||
static const switch_codec_implementation_t raw_16k_implementation = {
|
||||
/*.codec_type */ SWITCH_CODEC_TYPE_AUDIO,
|
||||
/*.ianacode */ 10,
|
||||
/*.iananame */ "L16",
|
||||
/*.samples_per_second = */ 16000,
|
||||
@@ -146,6 +149,7 @@ static const switch_codec_implementation_t raw_16k_implementation = {
|
||||
};
|
||||
|
||||
static const switch_codec_implementation_t raw_8k_implementation = {
|
||||
/*.codec_type */ SWITCH_CODEC_TYPE_AUDIO,
|
||||
/*.ianacode */ 10,
|
||||
/*.iananame */ "L16",
|
||||
/*.samples_per_second = */ 8000,
|
||||
@@ -166,6 +170,7 @@ static const switch_codec_implementation_t raw_8k_implementation = {
|
||||
|
||||
|
||||
static const switch_codec_implementation_t raw_8k_30ms_implementation = {
|
||||
/*.codec_type */ SWITCH_CODEC_TYPE_AUDIO,
|
||||
/*.ianacode */ 10,
|
||||
/*.iananame */ "L16",
|
||||
/*.samples_per_second */ 8000,
|
||||
@@ -186,6 +191,7 @@ static const switch_codec_implementation_t raw_8k_30ms_implementation = {
|
||||
|
||||
|
||||
static const switch_codec_implementation_t raw_8k_60ms_implementation = {
|
||||
/*.codec_type */ SWITCH_CODEC_TYPE_AUDIO,
|
||||
/*.ianacode */ 10,
|
||||
/*.iananame */ "L16",
|
||||
/*.samples_per_second */ 8000,
|
||||
@@ -205,6 +211,7 @@ static const switch_codec_implementation_t raw_8k_60ms_implementation = {
|
||||
};
|
||||
|
||||
static const switch_codec_implementation_t raw_8k_120ms_implementation = {
|
||||
/*.codec_type */ SWITCH_CODEC_TYPE_AUDIO,
|
||||
/*.ianacode */ 10,
|
||||
/*.iananame */ "L16",
|
||||
/*.samples_per_second */ 8000,
|
||||
@@ -226,7 +233,6 @@ static const switch_codec_implementation_t raw_8k_120ms_implementation = {
|
||||
|
||||
static const switch_codec_interface_t raw_codec_interface = {
|
||||
/*.interface_name */ "raw signed linear (16 bit)",
|
||||
/*.codec_type */ SWITCH_CODEC_TYPE_AUDIO,
|
||||
/*.implementations */ &raw_8k_120ms_implementation
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user