mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-16 09:46:22 +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:
@@ -594,7 +594,7 @@ static struct ast_frame *phone_read(struct ast_channel *ast)
|
||||
}
|
||||
p->fr.samples = 240;
|
||||
p->fr.datalen = res;
|
||||
p->fr.frametype = p->lastinput <= AST_FORMAT_MAX_AUDIO ?
|
||||
p->fr.frametype = p->lastinput <= AST_FORMAT_AUDIO_MASK ?
|
||||
AST_FRAME_VOICE :
|
||||
p->lastinput <= AST_FORMAT_PNG ? AST_FRAME_IMAGE
|
||||
: AST_FRAME_VIDEO;
|
||||
|
Reference in New Issue
Block a user