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 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
@@ -44,7 +44,7 @@
44
44
  Artistic 2.0
45
45
 
46
46
  = Copyright
47
- (C) 2004-2012, Daniel J. Berger, All Rights Reserved
47
+ (C) 2004-2013, Daniel J. Berger, All Rights Reserved
48
48
 
49
49
  = Warranty
50
50
  This package is provided "as is" and without any express or
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, [:ulong, :ulong], :bool
19
+ attach_function :Beep, [:dword, :dword], :bool
16
20
 
17
21
  ffi_lib :winmm
18
22
 
19
- attach_function :PlaySound, [:string, :long, :ulong], :bool
20
- attach_function :waveOutSetVolume, [:long, :ulong], :int
21
- attach_function :waveOutGetVolume, [:long, :pointer], :int
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.0'
40
+ VERSION = '0.5.1'
37
41
 
38
42
  LOW_FREQUENCY = 37
39
43
  HIGH_FREQUENCY = 32767
@@ -14,7 +14,7 @@ class TC_Win32_Sound < Test::Unit::TestCase
14
14
  end
15
15
 
16
16
  def test_version
17
- assert_equal('0.5.0', Sound::VERSION)
17
+ assert_equal('0.5.1', Sound::VERSION)
18
18
  end
19
19
 
20
20
  def test_beep
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.0'
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://www.rubyforge.org/projects/win32utils'
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.0
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: 2012-06-28 00:00:00.000000000 Z
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://www.rubyforge.org/projects/win32utils
66
+ homepage: http://github.com/djberg96/win32-sound
67
67
  licenses:
68
68
  - Artistic 2.0
69
69
  post_install_message: