mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-07 02:39:20 +00:00
white space cleanup
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7377 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
84076d922a
commit
adbabc5931
@ -39,6 +39,7 @@ struct gsm_context {
|
|||||||
gsm encoder;
|
gsm encoder;
|
||||||
gsm decoder;
|
gsm decoder;
|
||||||
};
|
};
|
||||||
|
|
||||||
static switch_status_t switch_gsm_init(switch_codec_t *codec, switch_codec_flag_t flags, const switch_codec_settings_t *codec_settings)
|
static switch_status_t switch_gsm_init(switch_codec_t *codec, switch_codec_flag_t flags, const switch_codec_settings_t *codec_settings)
|
||||||
{
|
{
|
||||||
struct gsm_context *context;
|
struct gsm_context *context;
|
||||||
@ -57,6 +58,7 @@ static switch_status_t switch_gsm_init(switch_codec_t *codec, switch_codec_flag_
|
|||||||
codec->private_info = context;
|
codec->private_info = context;
|
||||||
return SWITCH_STATUS_SUCCESS;
|
return SWITCH_STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
static switch_status_t switch_gsm_destroy(switch_codec_t *codec)
|
static switch_status_t switch_gsm_destroy(switch_codec_t *codec)
|
||||||
{
|
{
|
||||||
struct gsm_context *context = codec->private_info;
|
struct gsm_context *context = codec->private_info;
|
||||||
@ -69,6 +71,7 @@ static switch_status_t switch_gsm_destroy(switch_codec_t *codec)
|
|||||||
codec->private_info = NULL;
|
codec->private_info = NULL;
|
||||||
return SWITCH_STATUS_SUCCESS;
|
return SWITCH_STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
static switch_status_t switch_gsm_encode(switch_codec_t *codec, switch_codec_t *other_codec, void *decoded_data,
|
static switch_status_t switch_gsm_encode(switch_codec_t *codec, switch_codec_t *other_codec, void *decoded_data,
|
||||||
uint32_t decoded_data_len, uint32_t decoded_rate, void *encoded_data,
|
uint32_t decoded_data_len, uint32_t decoded_rate, void *encoded_data,
|
||||||
uint32_t * encoded_data_len, uint32_t * encoded_rate, unsigned int *flag)
|
uint32_t * encoded_data_len, uint32_t * encoded_rate, unsigned int *flag)
|
||||||
@ -98,6 +101,7 @@ static switch_status_t switch_gsm_encode(switch_codec_t *codec, switch_codec_t *
|
|||||||
}
|
}
|
||||||
return SWITCH_STATUS_SUCCESS;
|
return SWITCH_STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
static switch_status_t switch_gsm_decode(switch_codec_t *codec, switch_codec_t *other_codec, void *encoded_data,
|
static switch_status_t switch_gsm_decode(switch_codec_t *codec, switch_codec_t *other_codec, void *encoded_data,
|
||||||
uint32_t encoded_data_len, uint32_t encoded_rate, void *decoded_data,
|
uint32_t encoded_data_len, uint32_t encoded_rate, void *decoded_data,
|
||||||
uint32_t * decoded_data_len, uint32_t * decoded_rate, unsigned int *flag)
|
uint32_t * decoded_data_len, uint32_t * decoded_rate, unsigned int *flag)
|
||||||
@ -132,7 +136,6 @@ static switch_status_t switch_gsm_decode(switch_codec_t *codec, switch_codec_t *
|
|||||||
return SWITCH_STATUS_SUCCESS;
|
return SWITCH_STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Registration */
|
/* Registration */
|
||||||
static switch_codec_implementation_t gsm_8k_implementation = {
|
static switch_codec_implementation_t gsm_8k_implementation = {
|
||||||
/*.codec_type */ SWITCH_CODEC_TYPE_AUDIO,
|
/*.codec_type */ SWITCH_CODEC_TYPE_AUDIO,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user