Fix bug where console stack was incorrectly used to print audio devices

Fixes issue #915.