Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Should I limit the number of QAudioOutput instances in my app?

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

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 150 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.
  • D Offline
    D Offline
    Dmitriano
    wrote on last edited by Dmitriano
    #1

    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?

    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