Results 1 to 4 of 4

Thread: Qsound Error while playing Audio

  1. #1
    Join Date
    Jun 2009
    Location
    India
    Posts
    143
    Thanks
    16
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Question Qsound Error while playing Audio

    hi,

    Environment : QT Embedded , USB HID Audio Device

    i am trying to play a wav file using QSound. When i press play button in my GUI it shows an message " Failed opening audio device" . I am using a USB HID device for playing the audio. Any ideas what could be the problem?

    When i play the WAV file using command line interface "aplay" the audio is working fine and i can able to hear sound from USB Audio Output.

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Qsound Error while playing Audio

    . I am using a USB HID device for playing the audio
    Is it mapped to /dev/dsp ?
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  3. #3
    Join Date
    Jun 2009
    Location
    India
    Posts
    143
    Thanks
    16
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Qsound Error while playing Audio

    Quote Originally Posted by high_flyer View Post
    Is it mapped to /dev/dsp ?
    Hi,

    Thanks for your response.

    No i am new to this subject ? how do i map to /dev/dsp ...Please Help me. If you have any procedures for setting the audio please let me know.

  4. #4
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Qsound Error while playing Audio

    QSound in Qt/Embedded accesses /dev/dsp.
    So you device driver has to map to it.

    You will have to consult your readme or istall docs which came with your device driver.
    Maybe some other linux advanced users can help you more with that.
    Goolge may also help.
    A quick google search suggests that esddsp might be good for you.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

Similar Threads

  1. QSound Play error
    By augusbas in forum Qt Programming
    Replies: 0
    Last Post: 1st February 2010, 05:57
  2. QSound problem playing different wav files
    By couker in forum Qt Programming
    Replies: 6
    Last Post: 16th September 2009, 20:38
  3. Audio Recording in qt
    By BalaQT in forum Qt Programming
    Replies: 8
    Last Post: 12th September 2009, 09:01
  4. input audio
    By addu in forum Qt Programming
    Replies: 9
    Last Post: 10th September 2009, 11:12
  5. playing mp3 file with QSound
    By highlightsong in forum Qt Programming
    Replies: 4
    Last Post: 6th August 2008, 09:24

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.