Fix visual corruption when rendering at lower detail settings.
Fix sound buffer length mismatch.
Fix trivial synchronization error.
Fix wrong memory allocation.