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. Qt has a quieter sound than the standard player
Forum Updated to NodeBB v4.3 + New Features

Qt has a quieter sound than the standard player

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 174 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
    danyal
    wrote on last edited by
    #1

    i use this code for record my wav file

    QSoundEffect* effect = new QSoundEffect{this};
        effect->setSource(QUrl::fromLocalFile(":/audio/gudok5secMarginPauses1sec.wav"));
        effect->setVolume(1.0);
        effect->play();
    

    but the playback sound is quieter than if I open this file through a
    standard Windows Media player
    i also use this code

    QSound::play(":/audio/gudok5secMarginPauses1sec.wav");
    

    but the result is the same. How can I get the same loud sound as in Windows Media player?

    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