play audio file

Discussion in 'Ruby' started by Li Chen, Sep 2, 2008.

  1. Li Chen

    Li Chen Guest

    Hi all,

    Does anyone have idea which gem/plug in is used to play audio file under
    Vista?


    Thanks,

    Li
    --
    Posted via http://www.ruby-forum.com/.
    Li Chen, Sep 2, 2008
    #1
    1. Advertising

  2. Li Chen wrote:
    > Hi all,
    >
    > Does anyone have idea which gem/plug in is used to play audio file under
    > Vista?
    >
    >
    > Thanks,
    >
    > Li


    There's a gem called win32-sound that's suitable for playing wav files.
    I assume this uses the win32 API function for playing wav files, so it
    should work on vista. If you require anything more complex, you could
    try the Ruby SDL bindings but win32-sound looks fine for playing simple
    wav files.

    --
    Michael Morin
    Guide to Ruby
    http://ruby.about.com/
    Become an About.com Guide: beaguide.about.com
    About.com is part of the New York Times Company
    Michael Morin, Sep 2, 2008
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Lola
    Replies:
    34
    Views:
    14,400
    Oldmancolorado_deleted
    Jun 16, 2010
  2. Ron Provost
    Replies:
    1
    Views:
    426
  3. Nick Parker

    play audio on OSX?

    Nick Parker, Sep 30, 2005, in forum: Python
    Replies:
    0
    Views:
    314
    Nick Parker
    Sep 30, 2005
  4. aeonsun
    Replies:
    2
    Views:
    417
    Luc The Perverse
    Mar 11, 2007
  5. sick dick
    Replies:
    0
    Views:
    383
    sick dick
    Apr 3, 2006
Loading...

Share This Page