Code Monkey home page Code Monkey logo

win32-sound's Introduction

= Description
  A library for playing and controlling sounds on MS Windows.

= Prerequisites
  * ffi
  * test-unit 2 (Development only)

= Installation
  gem install win32-sound

= Synopsis
  require 'win32/sound'
  include Win32

  # Play a wav file
  Sound.play("somefile.wav")

  # Play a system sound
  Sound.play("SystemAsterisk",Sound::ALIAS)

  # Get the current volume of the waveform-audio output device.
  p Sound.volume.join(", ") # left channel, right channel

= Acknowledgements
  API ideas derived (or not) from Perl's Win32::Sound module and Python's
  winsound package.

= Known Bugs
  None that I'm aware of. Please report any bugs on the project page
  at https://github.com/djberg96/win32-sound.
   
= Future Plans
  Add ability to retrieve information about WAV files.
  Add MIDI support?

= Developer's Notes
  The MessageBeep() function, which the Python "winsound" module contains,
  is intentionally omitted here. I felt it was redundant, because you can
  achieve the same effect with something like this:

    Sound.play("SystemAsterisk", Sound::ALIAS).
	
= License
  Artistic 2.0

= Copyright
  (C) 2004-2013, Daniel J. Berger, All Rights Reserved

= Warranty
  This package is provided "as is" and without any express or
  implied warranties, including, without limitation, the implied
  warranties of merchantability and fitness for a particular purpose.

= Author(s)
  Daniel Berger
  Park Heesob

win32-sound's People

Contributors

djberg96 avatar domgetter avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.