Skip to content
Snippets Groups Projects
  • Michael Walton's avatar
    430f6e53
    audiohooks: Remove redundant codec translations when using audiohooks · 430f6e53
    Michael Walton authored
    The main frame read and write handlers in main/channel.c don't use the
    optimum placement in the processing flow for calling audiohooks
    callbacks, as far as codec translation is concerned. This change places
    the audiohooks callback code:
     * After the channel read translation if the frame is not linear before
    the translation, thereby increasing the chance that the frame is linear
    as required by audiohooks
     * Before the channel write translation if the frame is linear at this
    point
    This prevents the audiohooks code from instantiating additional
    translation paths to/from linear where a linear frame format is already
    available, saving valuable CPU cycles
    
    ASTERISK-26419
    
    Change-Id: I6edd5771f0740e758e7eb42558b953f046c01f8f
    430f6e53
    History
    audiohooks: Remove redundant codec translations when using audiohooks
    Michael Walton authored
    The main frame read and write handlers in main/channel.c don't use the
    optimum placement in the processing flow for calling audiohooks
    callbacks, as far as codec translation is concerned. This change places
    the audiohooks callback code:
     * After the channel read translation if the frame is not linear before
    the translation, thereby increasing the chance that the frame is linear
    as required by audiohooks
     * Before the channel write translation if the frame is linear at this
    point
    This prevents the audiohooks code from instantiating additional
    translation paths to/from linear where a linear frame format is already
    available, saving valuable CPU cycles
    
    ASTERISK-26419
    
    Change-Id: I6edd5771f0740e758e7eb42558b953f046c01f8f