Results 1 to 3 of 3

Thread: QSound.

  1. #1
    Join Date
    Mar 2008
    Posts
    68
    Thanks
    6
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default QSound.

    I have an application which requires some .wav files to be played on certain events.
    I tried playing it with a member variable of the class and also through the code suggested in the assistant. i m not able to hear any sound.
    I checked if QSound::isAvailable() it is returning false always.

    but i m able to hear the sound from mplayer.

    where is the problem and how do i set QSound Available to True.
    i working in linux QT4.3.4

    --
    Thanks in Advance

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: QSound.

    QSound uses NAS on X11. First you'll need NAS development headers and then you'll need to recompile Qt with NAS support turned on. Take a close look at configure output after qmake has been compiled. You should see something like this:
    NAS sound support ... yes
    J-P Nurmi

  3. #3
    Join Date
    Jul 2007
    Location
    California, USA
    Posts
    62
    Thanks
    17
    Thanked 7 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QSound.

    When I did this on Linux, I ended up using the linux system calls because it was easier.

    4.4 was supposed to have introduced a new sound management tool and a quick search gave me the Phonon Namespace. I see documentation in the qt assistant and I see it at
    http://doc.trolltech.com/4.4/phonon-overview.html

    I haven't tried it because I wrote that code at another company.

    -- ntp

Similar Threads

  1. QSound on Suse Linux
    By brent99 in forum Newbie
    Replies: 1
    Last Post: 11th March 2008, 08:41
  2. QSound class features problem
    By MarkoSan in forum Qt Programming
    Replies: 8
    Last Post: 20th December 2007, 14:21
  3. Multiple sounds with QSound possible?
    By JimDaniel in forum Newbie
    Replies: 2
    Last Post: 4th October 2007, 20:02
  4. Is QSound all there is?
    By ad5xj in forum Newbie
    Replies: 4
    Last Post: 1st September 2007, 01:31
  5. Replies: 1
    Last Post: 7th July 2006, 10:14

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.