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. Problem with qsound :(
Forum Updated to NodeBB v4.3 + New Features

Problem with qsound :(

Scheduled Pinned Locked Moved General and Desktop
7 Posts 2 Posters 5.2k Views 1 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.
  • T Offline
    T Offline
    theblizzfreak
    wrote on 8 Oct 2011, 20:00 last edited by
    #1

    i have my code like this
    @

    QSound ss2sound("crap.wav");

    QObject::connect(&SilentHill2, SIGNAL(clicked()),  &ss2sound, SLOT (QSound::play()));
    

    @
    but sound doesn't play :( is it the format what is wrong with this iv spent all trying to figure this out

    1 Reply Last reply
    0
    • E Offline
      E Offline
      Eddy
      wrote on 8 Oct 2011, 20:17 last edited by
      #2

      What Os are you on? What gives
      @isAvailable@

      Did you try an absolute path to your wav file?

      Does it work without the connect?
      @Ss2sound.play();@

      Qt Certified Specialist
      www.edalsolutions.be

      1 Reply Last reply
      0
      • T Offline
        T Offline
        theblizzfreak
        wrote on 8 Oct 2011, 21:59 last edited by
        #3

        the sound file doesn't work even if i do ss2sound.play();

        i can't seem to get isavailable to work

        and my operating system is windows 7 :)

        my file format is wav

        and iv tried abosulte path

        1 Reply Last reply
        0
        • E Offline
          E Offline
          Eddy
          wrote on 9 Oct 2011, 06:50 last edited by
          #4

          Can you play your wav file at all using a mediaplayer?

          Qt Certified Specialist
          www.edalsolutions.be

          1 Reply Last reply
          0
          • T Offline
            T Offline
            theblizzfreak
            wrote on 9 Oct 2011, 07:32 last edited by
            #5

            yes :) media player classic

            1 Reply Last reply
            0
            • E Offline
              E Offline
              Eddy
              wrote on 9 Oct 2011, 08:00 last edited by
              #6

              Have a look at" this thread":http://developer.qt.nokia.com/forums/viewthread/4468.

              Seems that qsound is deprecated and you should use phonon or qtmultimedia instead.

              Qt Certified Specialist
              www.edalsolutions.be

              1 Reply Last reply
              0
              • T Offline
                T Offline
                theblizzfreak
                wrote on 9 Oct 2011, 08:16 last edited by
                #7

                iv used phonon before ill go try and work with that :D

                1 Reply Last reply
                0

                2/7

                8 Oct 2011, 20:17

                topic:navigator.unread, 5
                • Login

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