rubygame 2.6.0 → 2.6.1
Sign up to get free protection for your applications and to get access to all the features.
- data/NEWS +18 -0
- data/lib/rubygame.rb +0 -1
- data/lib/rubygame/deprecated_mixer.rb +4 -4
- data/lib/rubygame/mixer.rb +1 -1
- metadata +2 -2
data/NEWS
CHANGED
@@ -1,5 +1,23 @@
|
|
1
1
|
= NEWS
|
2
2
|
|
3
|
+
== Rubygame 2.6.1
|
4
|
+
|
5
|
+
Release focus: Bug fixes.
|
6
|
+
|
7
|
+
=== Fixes
|
8
|
+
|
9
|
+
- Fixed: Rubygame::Mixer.open_audio was using a different default
|
10
|
+
audio format than it did in 2.5.3, which caused an error on Mac.
|
11
|
+
(Note: The Rubygame::Mixer.open_audio is deprecated, but kept for
|
12
|
+
backwards compatibility. Use Rubygame.open_audio instead.)
|
13
|
+
|
14
|
+
- Fixed: Rubygame no longer tries to load audio features if SDL_mixer
|
15
|
+
is not available. Trying to load them would cause an error, and
|
16
|
+
didn't match the old behavior.
|
17
|
+
|
18
|
+
|
19
|
+
|
20
|
+
|
3
21
|
== Rubygame 2.6.0
|
4
22
|
|
5
23
|
Release focus: Ported to FFI.
|
data/lib/rubygame.rb
CHANGED
@@ -81,10 +81,10 @@ module Rubygame::Mixer
|
|
81
81
|
|
82
82
|
Rubygame.deprecated( "Rubygame::Mixer", "3.0" )
|
83
83
|
|
84
|
-
frequency
|
85
|
-
format
|
86
|
-
channels
|
87
|
-
buffer
|
84
|
+
frequency ||= 22050
|
85
|
+
format ||= SDL::Mixer::DEFAULT_FORMAT
|
86
|
+
channels ||= 2
|
87
|
+
buffer ||= 1024
|
88
88
|
|
89
89
|
result = SDL::Mixer.OpenAudio(frequency, format, channels, buffer)
|
90
90
|
|
data/lib/rubygame/mixer.rb
CHANGED
@@ -25,6 +25,6 @@ Rubygame::VERSIONS[:sdl_mixer] = SDL::Mixer.Linked_Version.to_ary
|
|
25
25
|
|
26
26
|
|
27
27
|
# Load sound.rb, music.rb, and deprecated_mixer.rb
|
28
|
-
%w{ sound music deprecated_mixer }.each do |f|
|
28
|
+
%w{ audio sound music deprecated_mixer }.each do |f|
|
29
29
|
require File.join( File.dirname(__FILE__), f )
|
30
30
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubygame
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.6.
|
4
|
+
version: 2.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Croisant
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-10-
|
12
|
+
date: 2009-10-30 00:00:00 -05:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|