Skip to content
  • Ralph Giles's avatar
    Add tonality_analysis_reset(). · 9e3872a8
    Ralph Giles authored
    
    
    Add a reset function for the TonalityAnalysisState struct
    and call it on encoder reset.
    
    Move the state struct above the clear line in OpusEncoder
    so reset doesn't clobber reusable fields. Currently this
    is only the arch field, which is moved to to top of the
    struct so we can use the same memset-to-the-end pattern
    as OpusEncoder.
    
    Signed-off-by: default avatarJean-Marc Valin <jmvalin@jmvalin.ca>
    9e3872a8