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. Possible to play FLAC audio files in QSoundEffect ?
Forum Updated to NodeBB v4.3 + New Features

Possible to play FLAC audio files in QSoundEffect ?

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 1.3k Views 2 Watching
  • 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.
  • W Offline
    W Offline
    WiseCode
    wrote on last edited by WiseCode
    #1

    I know i can play WAV files in it and it works fine, but is there a way to play FLAC files in it for smaller ressource file size ?
    I'd be happy if there's a way, no matter what it is, but if it's not possible it's not that bad :)

    Thanks

    JKSHJ 1 Reply Last reply
    0
    • W WiseCode

      I know i can play WAV files in it and it works fine, but is there a way to play FLAC files in it for smaller ressource file size ?
      I'd be happy if there's a way, no matter what it is, but if it's not possible it's not that bad :)

      Thanks

      JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote on last edited by JKSH
      #2

      @WiseCode said in Possible to play FLAC audio files in QSoundEffect ?:

      I know i can play WAV files in it and it works fine, but is there a way to play FLAC files in it for smaller ressource file size ?
      I'd be happy if there's a way, no matter what it is, but if it's not possible it's not that bad :)

      Hi,

      The documentation (http://doc.qt.io/qt-5/qsoundeffect.html ) says, "This class allows you to play uncompressed audio files (typically WAV files)". FLAC is compressed, so QSoundEffect can't understand it.

      The documentation does suggest an alternative class for playing other formats: http://doc.qt.io/qt-5/qmediaplayer.html -- Give QMediaPlayer a try!

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      1 Reply Last reply
      1
      • W Offline
        W Offline
        WiseCode
        wrote on last edited by
        #3

        Hi,

        Thanks for your answer,

        the fact is that i need to play 18 wave files simultaneously with 18 audio players that need to be synchronized,
        with QMediaPlayer they are not synchronized even with the LowLatency flag, on top of that it doesn't accept FLAC files either

        So i'll stick to QSoundEffect and WAV for now

        Thank you, i'm marking the topic as solved :)

        1 Reply Last reply
        1

        • Login

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