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 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.
@@ -27,7 +27,6 @@ this_dir = File.expand_path( File.dirname(__FILE__) )
27
27
  # Note: screen.rb is intentionally loaded late.
28
28
  %w{ main
29
29
  shared
30
- audio
31
30
  clock
32
31
  constants
33
32
  color
@@ -81,10 +81,10 @@ module Rubygame::Mixer
81
81
 
82
82
  Rubygame.deprecated( "Rubygame::Mixer", "3.0" )
83
83
 
84
- frequency = (frequency or 22050)
85
- format = (format or AUDIO_U16SYS)
86
- channels = (channels or 2)
87
- buffer = (buffer or 1024)
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
 
@@ -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.0
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-24 00:00:00 -05:00
12
+ date: 2009-10-30 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency