Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Should I limit the number of QAudioOutput instances in my app?



  • What is the maximum number of sounds I can play concurrently in my app with a code like this (as an example)?

    std::vector<QFile> files;
    //..
    std::vector<QAudioOutput> audioOutputs;
    //..
    for (int i = 0; i < files.size(); ++i)
    {
        audioOutputs[i].start(&file[i]);
    }
    

    Should I limit the number of QAudioOutput instances? Does it make a sense to create a pool of them to share unused instances?

    Do Android or iOS have some limitations?


Log in to reply