Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Game Development
  4. [solved]what class should I use to play sound file?
Forum Updated to NodeBB v4.3 + New Features

[solved]what class should I use to play sound file?

Scheduled Pinned Locked Moved Game Development
5 Posts 4 Posters 4.0k 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
    Tratstil
    wrote on 3 Aug 2011, 11:06 last edited by
    #1

    Hi everyone!
    I need to play, stop, pause, resume a music file (wav + mp3 or wav only)? what class should I use?
    Thanks you :)

    1 Reply Last reply
    0
    • E Offline
      E Offline
      Eddy
      wrote on 3 Aug 2011, 11:16 last edited by
      #2

      have a look at this "musicplayer example":http://doc.qt.nokia.com/4.7/phonon-qmusicplayer.html.

      Qt Certified Specialist
      www.edalsolutions.be

      1 Reply Last reply
      0
      • D Offline
        D Offline
        dangelog
        wrote on 3 Aug 2011, 11:56 last edited by
        #3

        Phonon or QtMultimediaKit from mobility.

        Software Engineer
        KDAB (UK) Ltd., a KDAB Group company

        1 Reply Last reply
        0
        • T Offline
          T Offline
          Tratstil
          wrote on 4 Aug 2011, 07:46 last edited by
          #4

          Thanks so much! I did :D

          1 Reply Last reply
          0
          • K Offline
            K Offline
            kunal_the_one
            wrote on 9 Sept 2011, 02:06 last edited by
            #5

            It might be late to reply, but I had created this post that shows how phonon can be used to play short sound file. Thanks

            http://kunalmaemo.blogspot.com/2011/04/playing-sound-with-qt-and-phonon.html

            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