• David Reid's avatar
    Add support for streaming data sources. · d2cffd18
    David Reid authored
    A streaming data source keeps in memory only two pages of audio data
    and dynamically loads data from a background thread. It is essentially
    a double buffering system - as one page is playing, the other is being
    loaded by the async thread.
    
    The size of a single page is defined by the following macro:
    
        MA_RESOURCE_MANAGER_PAGE_SIZE_IN_MILLISECONDS
    
    By default this is currently set to 1 second of audio data. This means
    each page has 1 second to load which should be plenty of time. If you
    need additional time, the only way to do it is increase the size of the
    page by changing the value of the above macro.
    d2cffd18
ma_engine.c 2.99 KB