mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 03:50:31 +00:00
Expand codec bitfield from 32 bits to 64 bits.
Reviewboard: https://reviewboard.asterisk.org/r/416/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@227580 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -123,9 +123,9 @@ static int softmix_bridge_join(struct ast_bridge *bridge, struct ast_bridge_chan
|
||||
/* Setup frame parameters */
|
||||
sc->frame.frametype = AST_FRAME_VOICE;
|
||||
#ifdef SOFTMIX_16_SUPPORT
|
||||
sc->frame.subclass = AST_FORMAT_SLINEAR16;
|
||||
sc->frame.subclass.codec = AST_FORMAT_SLINEAR16;
|
||||
#else
|
||||
sc->frame.subclass = AST_FORMAT_SLINEAR;
|
||||
sc->frame.subclass.codec = AST_FORMAT_SLINEAR;
|
||||
#endif
|
||||
sc->frame.data.ptr = sc->final_buf;
|
||||
sc->frame.datalen = SOFTMIX_DATALEN;
|
||||
@@ -168,9 +168,9 @@ static enum ast_bridge_write_result softmix_bridge_write(struct ast_bridge *brid
|
||||
|
||||
/* If a frame was provided add it to the smoother */
|
||||
#ifdef SOFTMIX_16_SUPPORT
|
||||
if (frame->frametype == AST_FRAME_VOICE && frame->subclass == AST_FORMAT_SLINEAR16) {
|
||||
if (frame->frametype == AST_FRAME_VOICE && frame->subclass.codec == AST_FORMAT_SLINEAR16) {
|
||||
#else
|
||||
if (frame->frametype == AST_FRAME_VOICE && frame->subclass == AST_FORMAT_SLINEAR) {
|
||||
if (frame->frametype == AST_FRAME_VOICE && frame->subclass.codec == AST_FORMAT_SLINEAR) {
|
||||
#endif
|
||||
ast_slinfactory_feed(&sc->factory, frame);
|
||||
}
|
||||
|
Reference in New Issue
Block a user