Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. How to disable/Stop default console logs from AudioEngine QML type
Forum Updated to NodeBB v4.3 + New Features

How to disable/Stop default console logs from AudioEngine QML type

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 181 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Bhanuprakash_GN
    wrote on last edited by Bhanuprakash_GN
    #1

    Hi,
    I have used AudioEngine qml type to play some audio files in infinite loop and changing the pitch of audio based on some values using SoundInstance. Every time default console logs are printing continuously. Please help me to find the way to stop/disable console logs from AudioEngine qml type. It is happening in Debug and Release mode as well.

    Please find some default logs below:

    default openal device = OpenAL Soft device list: OpenAL Soft

    add QDeclarativeAudioSample[ "Tone" ]

    add QDeclarativeAudioCategory[ "Volume" ]

    add QDeclarativeSound[ "abc" ]

    SoundCone: engine not changeable after initialization.

    QDeclarativeSoundInstance::ctor()

    QDeclarativeSoundInstance::setSound( "abc" )

    Unknown child type for AudioEngine!

    QDeclarativeSoundInstance::setEngine( QDeclarativeAudioEngine(0x5621e8471aa0) )

    AudioEngine begin initialization

    creating default category

    init samples 1

    creating new StaticSoundBufferOpenAL

    init sounds 1

    AudioEngine ready.

    QDeclarativeSoundInstance::engineComplete()

    QDeclarativeSoundInstance::setSound( "abc" )

    SoundInstance switch sound from [ "" ] to [ "abc" ]

    QDeclarativeSoundInstance::stop()

    creating new QSoundInstance

    QSoundInstance::bindSoundDescription QDeclarativeSound(0x7f4e90217970)

    QAudioEnginePrivate::createSoundSource()

    creating new QSoundSourcePrivate

    QSoundInstance::prepareNewVariation()

    QSoundInstance: generate new play variation [old: -1 , new: 0 - "spo2Tone" ]

    QSoundInstance::updateVariationParameters 1 1 false

    QDeclarativeAudioCategory[ "Volume" ] setVolume( 0.8 )

    StaticSoundBufferOpenAL:sample[ QUrl("qrc:/Audio/xyz.wav") ] loaded

    QSoundInstance::bufferReady()

    QDeclarativeSoundInstance::stop()

    QSoundInstancePrivate::play()

    QSoundInstance::prepareNewVariation() QDeclarativeSoundInstance::play()
    ........
    ..........

    Please find below my sample code:

     AudioEngine {
            id: audioengine
    
            AudioSample {
                name: "Tone"
                source: "qrc:/Audio/abc.wav"
            }
    
            AudioCategory {
                name: "Volume"
                volume: 100
            }
    
            Sound {
                name: "abc"
                playType: Sound.Random
                category: "Volume"
    
                PlayVariation {
                    sample:"Tone"
                }
            }
    
            SoundInstance {
                id: soundEffect
                engine: audioengine
                sound: "abc"
            }
        }
        
        Connections {
        target: viewModel
        function onSignalEmited() {
            if(viewModel.xyz)
            {
                soundEffect.play();
            }
            else {
                soundEffect.stop();
            }
          }
        }
    
    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved