I'm not sure why the boot messages should suddenly only start being heard when the audio code I wrote is employed.

But to silence them I think you can put ' quiet' at the end of the single line in /boot/cmdline.txt, with no quote of course