mod_dahdi_codec: code before decl
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15785 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
8dd6f9c6e0
commit
c56c6f966c
|
@ -452,6 +452,11 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_dahdi_codec_load)
|
||||||
struct stat statbuf;
|
struct stat statbuf;
|
||||||
struct dahdi_transcoder_info info = { 0 };
|
struct dahdi_transcoder_info info = { 0 };
|
||||||
int32_t fd, res;
|
int32_t fd, res;
|
||||||
|
int mpf = 20000; /* Algorithmic delay of 15ms with 5ms of look-ahead delay */
|
||||||
|
int spf = 160;
|
||||||
|
int bpfd = 320;
|
||||||
|
int bpfc = 20;
|
||||||
|
int fpnp = 20;
|
||||||
|
|
||||||
total_encoders = 0;
|
total_encoders = 0;
|
||||||
total_encoders_usage = 0;
|
total_encoders_usage = 0;
|
||||||
|
@ -507,11 +512,7 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_dahdi_codec_load)
|
||||||
*module_interface = switch_loadable_module_create_module_interface(pool, modname);
|
*module_interface = switch_loadable_module_create_module_interface(pool, modname);
|
||||||
|
|
||||||
SWITCH_ADD_CODEC(codec_interface, "DAHDI G.729A 8.0k"); /* 8.0kbit */
|
SWITCH_ADD_CODEC(codec_interface, "DAHDI G.729A 8.0k"); /* 8.0kbit */
|
||||||
int mpf = 20000; /* Algorithmic delay of 15ms with 5ms of look-ahead delay */
|
|
||||||
int spf = 160;
|
|
||||||
int bpfd = 320;
|
|
||||||
int bpfc = 20;
|
|
||||||
int fpnp = 20;
|
|
||||||
switch_core_codec_add_implementation(pool,
|
switch_core_codec_add_implementation(pool,
|
||||||
codec_interface,
|
codec_interface,
|
||||||
SWITCH_CODEC_TYPE_AUDIO, /* enumeration defining the type of the codec */
|
SWITCH_CODEC_TYPE_AUDIO, /* enumeration defining the type of the codec */
|
||||||
|
|
Loading…
Reference in New Issue