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 :(
QtWS25 Last Chance

Problem with qsound :(

Scheduled Pinned Locked Moved General and Desktop
7 Posts 2 Posters 5.2k 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.
  • T Offline
    T Offline
    theblizzfreak
    wrote on 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
    • EddyE Offline
      EddyE Offline
      Eddy
      wrote on 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 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
        • EddyE Offline
          EddyE Offline
          Eddy
          wrote on 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 last edited by
            #5

            yes :) media player classic

            1 Reply Last reply
            0
            • EddyE Offline
              EddyE Offline
              Eddy
              wrote on 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 last edited by
                #7

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

                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