Use method QSound::isAvailable() to test if sound system is available.