Professional Web Applications Themes

[ANN] win32-sound 0.1.0 - Ruby

Hi all, I'm pleased to announce the release of win32-sound 0.1.0 What is it? =========== A simple interface for playing sounds on the Win32 platform. It is based largely on the Perl and Python Win32 sound modules. Where is it? ============ On the RAA or the project page at http://rubyforge.org/projects/win32utils/ Synopsis ======== require "win32/sound" include Win32 wav = "c:\windows\media\chimes.wav" # Play 'chimes' sound once Sound.play(wav) # Play 'chimes' sound in a loop for 3 seconds" Sound.play(wav,Sound::ASYNC|Sound::LOOP) sleep 3 Sound.stop # Beep for 2 seconds at 500 Hz Sound.beep(500,2000) Enjoy! The Win32 Utils Team...

  1. #1

    Default [ANN] win32-sound 0.1.0

    Hi all,

    I'm pleased to announce the release of win32-sound 0.1.0

    What is it?
    ===========
    A simple interface for playing sounds on the Win32 platform. It is
    based largely on the Perl and Python Win32 sound modules.

    Where is it?
    ============
    On the RAA or the project page at
    http://rubyforge.org/projects/win32utils/

    Synopsis
    ========
    require "win32/sound"
    include Win32

    wav = "c:\\windows\\media\\chimes.wav"

    # Play 'chimes' sound once
    Sound.play(wav)

    # Play 'chimes' sound in a loop for 3 seconds"
    Sound.play(wav,Sound::ASYNC|Sound::LOOP)
    sleep 3
    Sound.stop

    # Beep for 2 seconds at 500 Hz
    Sound.beep(500,2000)

    Enjoy!

    The Win32 Utils Team
    Daniel Guest

  2. #2

    Default Re: [ANN] win32-sound 0.1.0

    Daniel Berger wrote:
     

    Sounds good, speaking of sound I know linux sound has always been a bit
    mixed up with a bunch of competing libraries. I wonder how difficult it
    would be to have a sound api for ruby that sat ontop of either platform
    and whatever library was available. It might not be the most used
    library but it would certainly be nice.

    Charles Comstock
    Charles Guest

  3. #3

    Default Re: [ANN] win32-sound 0.1.0

    il Sat, 14 Feb 2004 20:53:43 -0600, Charles Comstock
    <wustl.edu> ha scritto::
     

    ruby/sdl works fine for this
    gabriele Guest

Similar Threads

  1. Replies: 1
    Last Post: December 23rd, 02:27 PM
  2. Win32-PerfMon on Win32
    By george in forum PERL Modules
    Replies: 5
    Last Post: October 28th, 11:05 AM
  3. Sound problems - new instance of sound starts each time a button is clicke
    By et10yl webforumsuser@macromedia.com in forum Macromedia Flash Sitedesign
    Replies: 3
    Last Post: December 13th, 08:46 AM
  4. Mute - toggle sound - single button - streaming sound
    By Bill in forum Adobe Flash, Flex & Director
    Replies: 0
    Last Post: August 24th, 08:19 PM
  5. kernel oops playing sound -- sound now wedged
    By Carl Fink in forum Debian
    Replies: 2
    Last Post: July 21st, 11:10 AM

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
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139