Qt World Summit: Register Today!

SoundEffect play() is making error 'QAudioOutput: open error'

  • It is running on desktop win32. It has no earphone or speaker.
    The qml SoundEffect type can play() and occur 'QAudioOutput: open error'.
    and if it continues to run the function call, it will say 'memory out'

    Is there any way to check 'SoundEffect' can play ??
    I had already checked if 'SoundEffect.status' is 'SoundEffect.Ready'.
    I knew about the qml Audio Type. but I want to know about 'SoundEffect'.

    function soundEffectPolicePlay(value) {
        if (value && testSoundOff === false) {
            if (soundEffectPolice.status == SoundEffect.Ready) {
                if (soundEffectPolice.isPlaying === false) {
        } else {
            if (soundEffectPolice.isPlaying) {

  • Lifetime Qt Champion

    Hi and welcome to devnet,

    You could check whether the default output device device is valid and if not mute your application.

    Hope it helps

Log in to reply