• Show log

    Commit

  • Hash : c72aef26
    Author : Splamy
    Date : 2021-05-01T23:56:23

    Fixed microphone randomly stop working
    
    WASAPI_WaitDevice is used for audio playback and capture, but needs to
    behave slighty different.
    For playback `GetCurrentPadding` returns the padding which is already
    queued, so WaitDevice should return when buffer length falls below the
    buffer threshold (`maxpadding`).
    For capture `GetCurrentPadding` returns the available data which can be
    read, so WaitDevice can return as soon as any data is available.
    
    In the old implementation WaitDevice could suddenly hang. This is
    because on many capture devices the buffer (`padding`) wasn't filled
    fast enough to surpass `maxpadding`. But if at one point (due to unlucky
    timing) more than maxpadding frames were available, WaitDevice would not
    return anymore.
    
    Issue #3234 is probably related to this.
    

  • Properties

  • Git HTTP https://git.kmx.io/kc3-lang/SDL.git
    Git SSH git@git.kmx.io:kc3-lang/SDL.git
    Public access ? public
    Description

    Fork of https://github.com/libsdl-org/SDL

    Users
    thodg_m kc3_lang_org thodg_w thodg_l www_kmx_io thodg
    Tags