Page MenuHome

Add WASAPI
ClosedPublic

Authored by Joerg Mueller (nexyon) on Mar 11 2021, 7:30 PM.

Details

Summary

This adds WASAPI as audio backend for Blender on Windows. WASAPI is the windows audio session API, i.e. a standard API that is available on Windows by default.

Diff Detail

Repository
rB Blender

Event Timeline

Joerg Mueller (nexyon) requested review of this revision.Mar 11 2021, 7:30 PM
Joerg Mueller (nexyon) created this revision.
Ray Molenkamp (LazyDodo) requested changes to this revision.Mar 11 2021, 8:04 PM

Builds with no issues, but no output, i can take a closer look why when i find some spare time

This revision now requires changes to proceed.Mar 11 2021, 8:04 PM

I've updated the implementation for the case where the API changes the pointer (not following the documentation here: https://docs.microsoft.com/en-us/windows/win32/api/audioclient/nf-audioclient-iaudioclient-isformatsupported).

This update fixes a minor issue, where playback wouldn't start properly due to a wrong buffer size.

Given virtually 99% of this patch is in /extern there is not much to review here.

This revision is now accepted and ready to land.Mar 13 2021, 8:53 PM
Brecht Van Lommel (brecht) added inline comments.
CMakeLists.txt
315

Expand the description to read "Enable Windows Audio Session API for audio playback on Windows"

Could even use expand it in the name of the option too.

Joerg Mueller (nexyon) set the repository for this revision to rB Blender.Mar 16 2021, 11:13 PM