spdif rewrite wip