• Steven Noonan's avatar
    wasapi: ensure that wasapi context structure is zeroed before filling it · e4ff49d5
    Steven Noonan authored
    I had a situation where I was doing:
    
        ma_backend backends[] = {
    	ma_backend_jack,
    	ma_backend_wasapi,
        };
        ma_context_init(backends, sizeof(backends)/sizeof(backends[0]),
    	&contextConfig, &context);
    
    And since JACK was unavailable, it fell back to WASAPI. When this
    happened, the WASAPI commandIndex and commandCount variables were
    already stomped on by the JACK backend initialization, but the WASAPI
    backend assumes they are zero-initialized.
    Signed-off-by: default avatarSteven Noonan <steven@uplinklabs.net>
    e4ff49d5
miniaudio.h 2.73 MB
The source could not be displayed because it is larger than 1 MB. You can load it anyway or download it instead.