Skip to content
  • Philippe Gorley's avatar
    audio: clip audio signal when mixing · f8ba6bc8
    Philippe Gorley authored and Adrien Béraud's avatar Adrien Béraud committed
    Blindly adding both signals results in over/underflows which show up in
    the signal as noise, avoid that by clamping the result between min and
    max for s16 samples.
    
    Change-Id: Ibbb42d87497c662b5ba9085d4c9efb6f1e45a183
    f8ba6bc8