Results 1 to 2 of 2

Thread: qsound on fedora 8

  1. #1
    Join Date
    May 2011
    Posts
    3
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default qsound on fedora 8

    i use fedora 8, qt-x11-4.4.2 and this i my code

    #include <QApplication>
    #include <QSound>

    int main(int argc, char *argv[])
    {
    QApplication a(argc, argv);

    QSound:: play("/home/wavefile/laugh.wav");

    return a.exec();
    }


    but i cannot hear any sound.
    Qsound::isAvailabel always returns true
    and i think nas has already installed but when i run nasd command , it returns error.

    anybody help me? thanks

    sorry for my english

  2. #2
    Join Date
    May 2011
    Posts
    3
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: qsound on fedora 8

    Now, when i use qt-ebedded-4.4.2 to compile the qsound application and run it with command ./qsound -qws .It worked ok.
    But when i setloop (100) it just played 32 times , then i can not play any thing
    Code like that:


    #include <QApplication>
    #include <QSound>

    int main(int argc, char *argv[])
    {
    QApplication a(argc, argv);

    QSound *sound =new QSound("/home/wavefile/laugh.wav");
    sound->setloop(100);
    sound->play();

    return a.exec();
    }

    Then when i play sound with aplay, i cannot hear anything.
    can anybody help me?

Similar Threads

  1. Installation of Qt-4.7 on fedora 12
    By soumya in forum Installation and Deployment
    Replies: 1
    Last Post: 6th October 2012, 10:44
  2. QT4 and Fedora x86_64
    By sjohnson228 in forum Installation and Deployment
    Replies: 0
    Last Post: 21st March 2011, 17:45
  3. Qt for Fedora
    By phillip_Qt in forum Newbie
    Replies: 3
    Last Post: 14th October 2009, 14:44
  4. Qt and mysql on fedora 9
    By cbarmpar in forum Qt Programming
    Replies: 5
    Last Post: 4th September 2008, 19:57
  5. Compiling on Fedora 7
    By steg90 in forum Installation and Deployment
    Replies: 3
    Last Post: 5th July 2007, 14:44

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
  •  
Qt is a trademark of The Qt Company.