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. QtSoundEffect delay in between loops
Forum Update on Monday, May 27th 2025

QtSoundEffect delay in between loops

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 366 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.
  • F Offline
    F Offline
    furang
    wrote on last edited by
    #1

    Hi,
    Is there a way to add delay between loops? I want the sound to be played with a controllable delay between loops, but I don't see a straight way provided by the QSoundEffect class.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      AFAIK no. You can use a QTimer to trigger the play after the delay you want.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      F 1 Reply Last reply
      1
      • F Offline
        F Offline
        furang
        wrote on last edited by
        #3
        This post is deleted!
        1 Reply Last reply
        0
        • SGaistS SGaist

          Hi,

          AFAIK no. You can use a QTimer to trigger the play after the delay you want.

          F Offline
          F Offline
          furang
          wrote on last edited by
          #4

          @SGaist Thanks for Yore advice!
          Yes I'm aware of QTimer. Currently I'm working on a workaround using QTime by capturring .elapsed() but this way I am not able to use QSoundEffect's built in loop functions so I need to handle loops my self.

          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