title: Programatically detect if an audio file is stereo or mono?
body: <p>I am wanting to write a bash script on a MacOS platform that will perform different operations to <code>m4a</code> files with ALAC encoding, depending on whether they are stereo or mono. How can I go about the stereo/mono detection? Are there any tools/libraries that I can utilise? Thank you.</p>