[ANN] win32-sound 0.1.0

D

Daniel Berger

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
 
C

Charles Comstock

Daniel said:
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

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
 
G

gabriele renzi

il Sat, 14 Feb 2004 20:53:43 -0600, Charles Comstock
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.

ruby/sdl works fine for this
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,710
Latest member
bernietqt

Latest Threads

Top