win32-sound 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +4 -0
- data/README +1 -1
- data/lib/win32/sound.rb +9 -5
- data/test/test_win32_sound.rb +1 -1
- data/win32-sound.gemspec +2 -2
- metadata +3 -3
data/CHANGES
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
== 0.5.1 - 10-Apr-2013
|
2
|
+
* Updated HANDLE prototype in underlying FFI code. This affects
|
3
|
+
64 bit versions of Ruby.
|
4
|
+
|
1
5
|
== 0.5.0 - 28-Jun-2012
|
2
6
|
* Now uses FFI instead of win32-api. This means it works with JRuby, too.
|
3
7
|
* Corresponding updates to the tests, Rakefile, gemspec, etc.
|
data/README
CHANGED
data/lib/win32/sound.rb
CHANGED
@@ -10,15 +10,19 @@ module Win32
|
|
10
10
|
|
11
11
|
private
|
12
12
|
|
13
|
+
typedef :ulong, :dword
|
14
|
+
typedef :uintptr_t, :hmodule
|
15
|
+
typedef :uintptr_t, :hwaveout
|
16
|
+
|
13
17
|
ffi_lib :kernel32
|
14
18
|
|
15
|
-
attach_function :Beep, [:
|
19
|
+
attach_function :Beep, [:dword, :dword], :bool
|
16
20
|
|
17
21
|
ffi_lib :winmm
|
18
22
|
|
19
|
-
attach_function :PlaySound, [:string, :
|
20
|
-
attach_function :waveOutSetVolume, [:
|
21
|
-
attach_function :waveOutGetVolume, [:
|
23
|
+
attach_function :PlaySound, [:string, :hmodule, :dword], :bool
|
24
|
+
attach_function :waveOutSetVolume, [:hwaveout, :dword], :int
|
25
|
+
attach_function :waveOutGetVolume, [:hwaveout, :pointer], :int
|
22
26
|
attach_function :waveOutGetNumDevs, [], :int
|
23
27
|
attach_function :waveInGetNumDevs, [], :int
|
24
28
|
attach_function :midiOutGetNumDevs, [], :int
|
@@ -33,7 +37,7 @@ module Win32
|
|
33
37
|
public
|
34
38
|
|
35
39
|
# The version of the win32-sound library
|
36
|
-
VERSION = '0.5.
|
40
|
+
VERSION = '0.5.1'
|
37
41
|
|
38
42
|
LOW_FREQUENCY = 37
|
39
43
|
HIGH_FREQUENCY = 32767
|
data/test/test_win32_sound.rb
CHANGED
data/win32-sound.gemspec
CHANGED
@@ -2,11 +2,11 @@ require 'rubygems'
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |spec|
|
4
4
|
spec.name = 'win32-sound'
|
5
|
-
spec.version = '0.5.
|
5
|
+
spec.version = '0.5.1'
|
6
6
|
spec.author = 'Daniel J. Berger'
|
7
7
|
spec.license = 'Artistic 2.0'
|
8
8
|
spec.email = 'djberg96@gmail.com'
|
9
|
-
spec.homepage = 'http://
|
9
|
+
spec.homepage = 'http://github.com/djberg96/win32-sound'
|
10
10
|
spec.summary = 'A library for playing with sound on MS Windows.'
|
11
11
|
spec.test_file = 'test/test_win32_sound.rb'
|
12
12
|
spec.files = Dir['**/*'] << ".gemtest"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: win32-sound
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-04-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: ffi
|
@@ -63,7 +63,7 @@ files:
|
|
63
63
|
- test/test_win32_sound.rb
|
64
64
|
- win32-sound.gemspec
|
65
65
|
- .gemtest
|
66
|
-
homepage: http://
|
66
|
+
homepage: http://github.com/djberg96/win32-sound
|
67
67
|
licenses:
|
68
68
|
- Artistic 2.0
|
69
69
|
post_install_message:
|