mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-29 18:19:30 +00:00
Commit some cleanups to the format type code.
- Remove the AST_FORMAT_MAX_* types, as these are consuming 3 out of our available 32 bits. - Add a native slin16 type, so that 16kHz codecs can translate without losing resolution. (This doesn't affect anything immediately, until another codec has wb support.) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89071 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -198,7 +198,7 @@ static int jingle_get_codec(struct ast_channel *chan);
|
||||
static const struct ast_channel_tech jingle_tech = {
|
||||
.type = "Jingle",
|
||||
.description = "Jingle Channel Driver",
|
||||
.capabilities = ((AST_FORMAT_MAX_AUDIO << 1) - 1),
|
||||
.capabilities = AST_FORMAT_AUDIO_MASK,
|
||||
.requester = jingle_request,
|
||||
.send_digit_begin = jingle_digit_begin,
|
||||
.send_digit_end = jingle_digit_end,
|
||||
@@ -340,10 +340,7 @@ static int jingle_accept_call(struct jingle *client, struct jingle_pvt *p)
|
||||
continue;
|
||||
if (alreadysent & pref_codec)
|
||||
continue;
|
||||
if (pref_codec <= AST_FORMAT_MAX_AUDIO)
|
||||
add_codec_to_answer(p, pref_codec, dcodecs);
|
||||
else
|
||||
add_codec_to_answer(p, pref_codec, dcodecs);
|
||||
add_codec_to_answer(p, pref_codec, dcodecs);
|
||||
alreadysent |= pref_codec;
|
||||
}
|
||||
payload_red = iks_new("payload-type");
|
||||
|
Reference in New Issue
Block a user