Get number of channels in a file?

A simple thing I thought, but I can’t find anything in the docs. How do I get the number of channels in an audio stream, like for example in a loaded .wav, if it’s mono or stereo?

You can call Sound::getFormat, which among other info will provide you with the number channels in the Sound.