Fix infinite recursion in sound library

cc/ @wirsing