Unified function for converting an audio_format object to a string, for log messages and for the "status" command.