Results 1 to 3 of 3

Thread: Playing system sounds with QSound in a platform-agnostic way

  1. #1
    Join Date
    Nov 2010
    Posts
    77
    Thanks
    17
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Playing system sounds with QSound in a platform-agnostic way

    I would like to play the operating system's warning sound using QSound. Is there a way to access the user's sound scheme in a platform-agnostic way to retrieve the correct sound?

  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: Playing system sounds with QSound in a platform-agnostic way

    Is there a way to access the user's sound scheme in a platform-agnostic way to retrieve the correct sound?
    An agnostic does not deny the existence of God and heaven but holds that one cannot know for certain whether or not they exist. The term agnostic was fittingly coined by the 19th-century British scientist Thomas H. Huxley, who believed that only material phenomena were objects of exact knowledge. He made up the word from the prefix a-, meaning "without, not," as in amoral, and the noun Gnostic. Gnostic is related to the Greek word gnsis, "knowledge," which was used by early Christian writers to mean "higher, esoteric knowledge of spiritual things"; hence, Gnostic referred to those with such knowledge. In coining the term agnostic, Huxley was considering as "Gnostics" a group of his fellow intellectuals"ists," as he called themwho had eagerly embraced various doctrines or theories that explained the world to their satisfaction. Because he was a "man without a rag of a label to cover himself with," Huxley coined the term agnostic for himself, its first published use being in 1870.
    I guess you mean cross platform way, or platform non specific way.
    Well, do all systems have a sound scheme?
    Do all sound schemes have the same structure?
    Oh, and btw - this is a window manager issue not a platform issue.
    ==========================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
    Nov 2010
    Posts
    77
    Thanks
    17
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Playing system sounds with QSound in a platform-agnostic way

    As far as I know, platform agnostic is a valid term. I could be wrong since I'm not a native English speaker. But yes, I meant cross-platform way.
    http://en.wikipedia.org/wiki/Platform_agnostic

    Another approach that is used is to depend on pre-existing software that hides the differences between the platforms—called abstraction of the platform—such that the program itself is unaware of the platform it is running on. It could be said that such programs are platform agnostic. Programs that run on the Java Virtual Machine (JVM) are built in this fashion.

Similar Threads

  1. Playing sound as by QSound on Maemo on N900 device using Qt
    By freely in forum Qt for Embedded and Mobile
    Replies: 2
    Last Post: 4th April 2011, 08:12
  2. Qsound Error while playing Audio
    By augusbas in forum Qt for Embedded and Mobile
    Replies: 3
    Last Post: 1st February 2010, 11:20
  3. QSound problem playing different wav files
    By couker in forum Qt Programming
    Replies: 6
    Last Post: 16th September 2009, 20:38
  4. playing mp3 file with QSound
    By highlightsong in forum Qt Programming
    Replies: 4
    Last Post: 6th August 2008, 09:24
  5. Multiple sounds with QSound possible?
    By JimDaniel in forum Newbie
    Replies: 2
    Last Post: 4th October 2007, 20:02

Tags for this Thread

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.