Results 1 to 8 of 8

Thread: Phonon

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2010
    Location
    Iran
    Posts
    27
    Thanks
    1
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Phonon

    Hi

    My Code working without any Error But No sound and speaker is silent!

    Qt Code:
    1. QList<Phonon::AudioOutputDevice> audioOutputDevices =
    2. Phonon::BackendCapabilities::availableAudioOutputDevices();
    3.  
    4. player = new Phonon::MediaObject(this);
    5. player->setCurrentSource(Phonon::MediaSource(AZAN));
    6. audioOutput = new Phonon::AudioOutput(Phonon::MusicCategory, this);
    7.  
    8. audioOutput->setOutputDevice(audioOutputDevices[0]);
    9. qDebug()<<audioOutputDevices;
    10.  
    11. Phonon::Path path = Phonon::createPath(player, audioOutput);
    12.  
    13. audioOutput->setVolume(100);
    14. player->play();
    To copy to clipboard, switch view to plain text mode 

    Result of qDebug:

    ("ALSA default output", "OSS default output", "Jack Audio Connection Kit")

    Using Beagleboard and Ubuntu 10.04.1 and Qt 4.6.2

    Tanks
    Last edited by wysota; 6th October 2010 at 10:45.

Similar Threads

  1. Qt4.4.3 Phonon
    By alexcuiCN in forum Qt Programming
    Replies: 0
    Last Post: 18th April 2009, 03:09
  2. Phonon V4L
    By kovariadam in forum Newbie
    Replies: 1
    Last Post: 31st January 2009, 15:35
  3. phonon on QT4.4
    By coolk in forum Installation and Deployment
    Replies: 15
    Last Post: 15th January 2009, 13:38
  4. Phonon
    By QTInfinity in forum Qt Programming
    Replies: 2
    Last Post: 19th November 2008, 14:24
  5. Phonon and Mac
    By SidGBF in forum Qt Programming
    Replies: 5
    Last Post: 8th September 2008, 13:11

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.