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. QSoundEffect(qaudio): Error decoding source

QSoundEffect(qaudio): Error decoding source

Scheduled Pinned Locked Moved General and Desktop
qsoundqmediaplayermp3wma
2 Posts 2 Posters 17.5k 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.
  • M Offline
    M Offline
    mnokka
    wrote on 8 Apr 2015, 11:21 last edited by
    #1

    I tried to play mp3/wma files using QSound, however I got "Error decoding source" runtime message (windows mediaplayer played files ok).

    Only way I was able to play sounds, was to use QMediaPlayer do the playing.

    Is there something odd related QSound (5.1/5.4) ?

    J 1 Reply Last reply 6 May 2015, 15:32
    0
    • M mnokka
      8 Apr 2015, 11:21

      I tried to play mp3/wma files using QSound, however I got "Error decoding source" runtime message (windows mediaplayer played files ok).

      Only way I was able to play sounds, was to use QMediaPlayer do the playing.

      Is there something odd related QSound (5.1/5.4) ?

      J Offline
      J Offline
      jclark
      wrote on 6 May 2015, 15:32 last edited by
      #2

      @mnokka

      Are you sure your path is correct? If Qt can't find the file it gives the "error decoding source" message which is misleading.

      Add files to your resource file:

      • (If you haven't already created one go to File | New | Qt | Qt Resource File).
      • Click Add existing files then select sound files you want
      • Right click and copy path
      • Paste path to play filename. e.g. QSound::play(":/lose.wav");
      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