Added audio support.
Also fixed offscreen rendering.