PageRenderTime 46ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/InstantRails-win/InstantRails/ruby/lib/ruby/gems/1.8/doc/win32-sound-0.4.1/rdoc/files/README.html

https://github.com/drnic/instantrails
HTML | 183 lines | 138 code | 42 blank | 3 comment | 0 complexity | c63f3187c973d513c6143ea3410ee5bc MD5 | raw file
  1. <?xml version="1.0" encoding="iso-8859-1"?>
  2. <!DOCTYPE html
  3. PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  4. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  5. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  6. <head>
  7. <title>File: README</title>
  8. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  9. <meta http-equiv="Content-Script-Type" content="text/javascript" />
  10. <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
  11. <script type="text/javascript">
  12. // <![CDATA[
  13. function popupCode( url ) {
  14. window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
  15. }
  16. function toggleCode( id ) {
  17. if ( document.getElementById )
  18. elem = document.getElementById( id );
  19. else if ( document.all )
  20. elem = eval( "document.all." + id );
  21. else
  22. return false;
  23. elemStyle = elem.style;
  24. if ( elemStyle.display != "block" ) {
  25. elemStyle.display = "block"
  26. } else {
  27. elemStyle.display = "none"
  28. }
  29. return true;
  30. }
  31. // Make codeblocks hidden by default
  32. document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
  33. // ]]>
  34. </script>
  35. </head>
  36. <body>
  37. <div id="fileHeader">
  38. <h1>README</h1>
  39. <table class="header-table">
  40. <tr class="top-aligned-row">
  41. <td><strong>Path:</strong></td>
  42. <td>README
  43. </td>
  44. </tr>
  45. <tr class="top-aligned-row">
  46. <td><strong>Last Update:</strong></td>
  47. <td>Fri Dec 14 11:50:27 -0300 2007</td>
  48. </tr>
  49. </table>
  50. </div>
  51. <!-- banner header -->
  52. <div id="bodyContent">
  53. <div id="contextContent">
  54. <div id="description">
  55. <h2>Description</h2>
  56. <pre>
  57. A package for playing with sound on Windows.
  58. </pre>
  59. <h2>Prerequisites</h2>
  60. <pre>
  61. This package requires Ruby 1.8.0 or later. Ruby 1.8.2 or later is
  62. recommended.
  63. </pre>
  64. <h2>Installation instructions</h2>
  65. <pre>
  66. rake test (optional)
  67. rake install (non-gem) or rake install_gem (gem)
  68. </pre>
  69. <h2>Synopsis</h2>
  70. <pre>
  71. require 'win32/sound'
  72. include Win32
  73. # Get the current volume of the waveform-audio output device.
  74. p Sound.volume.join(&quot;, &quot;) # left channel, right channel
  75. # Play a system sound
  76. Sound.play(&quot;SystemAsterisk&quot;,Sound::ALIAS)
  77. # Play a wav file
  78. Sound.play(&quot;somefile.wav&quot;)
  79. </pre>
  80. <h2>Acknowledgements</h2>
  81. <pre>
  82. API ideas derived (or not) from Perl's Win32::Sound module and Python's
  83. winsound package.
  84. </pre>
  85. <h2>Known Bugs</h2>
  86. <pre>
  87. None that I'm aware of. Please report any bugs on the Win32 Utils home
  88. page at http://rubyforge.org/projects/win32utils.
  89. </pre>
  90. <h2>Questions and Comments</h2>
  91. <pre>
  92. Please post questions and/or comments on one of the forums on the project
  93. page at http://rubyforge.org/projects/win32utils. Click the 'Forums' tab.
  94. </pre>
  95. <h2>Future Plans</h2>
  96. <pre>
  97. Add ability to retrieve information about WAV files.
  98. Add MIDI support?
  99. </pre>
  100. <h2>Developer&#8216;s Notes</h2>
  101. <pre>
  102. The MessageBeep() function, which the Python &quot;winsound&quot; module contains,
  103. is intentionally omitted here. I felt it was redundant, because you can
  104. achieve the same effect with something like
  105. Sound.play(&quot;SystemAsterisk&quot;, Sound::ALIAS).
  106. </pre>
  107. <h2>License</h2>
  108. <pre>
  109. Ruby's
  110. </pre>
  111. <h2>Copyright</h2>
  112. <pre>
  113. (C) 2004-2007, Daniel J. Berger, All Rights Reserved
  114. </pre>
  115. <h2>Warranty</h2>
  116. <pre>
  117. This package is provided &quot;as is&quot; and without any express or
  118. implied warranties, including, without limitation, the implied
  119. warranties of merchantability and fitness for a particular purpose.
  120. </pre>
  121. <h2>Author(s)</h2>
  122. <pre>
  123. Daniel Berger
  124. djberg96 at nospam at gmail dot com
  125. imperator on IRC (irc.freenode.net)
  126. Park Heesob
  127. phasis at nospam at nownuri dot net
  128. phasis68 on IRC (irc.freenode.net)
  129. </pre>
  130. </div>
  131. </div>
  132. </div>
  133. <!-- if includes -->
  134. <div id="section">
  135. <!-- if method_list -->
  136. </div>
  137. <div id="validator-badges">
  138. <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
  139. </div>
  140. </body>
  141. </html>