Results 1 to 6 of 6

Thread: No sound on embedded devices

  1. #1
    Join Date
    May 2008
    Posts
    21
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11

    Default No sound on embedded devices

    I'm using Qt2.3.10 and QSound class to play a wav format file on my embedded arm devices.

    QSound:lay("/home/sound.wav");

    My question is, why after I run my program no sound can be heard?

    ./myprogram -qws

    Is there any configuration that need to be added?

    My wav file format is : RIFF (little-endian) data, WAVE audio, Microsoft PCM, 8 bit, mono 8000 Hz

    Thx..

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: No sound on embedded devices

    What does QSound::available() return?

  3. #3
    Join Date
    May 2008
    Posts
    21
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11

    Default Re: No sound on embedded devices

    it returns TRUE

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: No sound on embedded devices

    Quote Originally Posted by winarko View Post
    it returns TRUE
    Hmm... is there any other way to test whether the sound works on your system (for example by starting some other application) ? And what OS do you use?

  5. #5
    Join Date
    May 2008
    Posts
    21
    Qt products
    Qt/Embedded
    Platforms
    Unix/X11

    Default Re: No sound on embedded devices

    yeah, I have test it using command:
    cp /home/a.wav /dev/dsp
    I'm working under linux-2.4.18

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: No sound on embedded devices

    Qt uses NAS (at least the desktop edition), so the next step is to check if it works. Also check if the user for which the application is started has proper rights to access sound devices.

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.