Patch to generate the ac3 window, based on code by Justin Ruggles.