gosu 0.14.0 → 0.14.3.pre1

Sign up to get free protection for your applications and to get access to all the features.
data/src/stb_vorbis.c CHANGED
@@ -1,4 +1,4 @@
1
- // Ogg Vorbis audio decoder - v1.13b - public domain
1
+ // Ogg Vorbis audio decoder - v1.14 - public domain
2
2
  // http://nothings.org/stb_vorbis/
3
3
  //
4
4
  // Original version written by Sean Barrett in 2007.
@@ -30,24 +30,26 @@
30
30
  // Tom Beaumont Ingo Leitgeb Nicolas Guillemot
31
31
  // Phillip Bennefall Rohit Thiago Goulart
32
32
  // manxorist@github saga musix github:infatum
33
+ // Timur Gagiev
33
34
  //
34
35
  // Partial history:
35
- // 1.13 - 2018/01/29 - fix truncation of last frame (hopefully)
36
- // 1.12 - 2017/11/21 - limit residue begin/end to blocksize/2 to avoid large temp allocs in bad/corrupt files
37
- // 1.11 - 2017/07/23 - fix MinGW compilation
38
- // 1.10 - 2017/03/03 - more robust seeking; fix negative ilog(); clear error in open_memory
39
- // 1.09 - 2016/04/04 - back out 'truncation of last frame' fix from previous version
40
- // 1.08 - 2016/04/02 - warnings; setup memory leaks; truncation of last frame
41
- // 1.07 - 2015/01/16 - fixes for crashes on invalid files; warning fixes; const
42
- // 1.06 - 2015/08/31 - full, correct support for seeking API (Dougall Johnson)
36
+ // 1.14 - 2018-02-11 - delete bogus dealloca usage
37
+ // 1.13 - 2018-01-29 - fix truncation of last frame (hopefully)
38
+ // 1.12 - 2017-11-21 - limit residue begin/end to blocksize/2 to avoid large temp allocs in bad/corrupt files
39
+ // 1.11 - 2017-07-23 - fix MinGW compilation
40
+ // 1.10 - 2017-03-03 - more robust seeking; fix negative ilog(); clear error in open_memory
41
+ // 1.09 - 2016-04-04 - back out 'truncation of last frame' fix from previous version
42
+ // 1.08 - 2016-04-02 - warnings; setup memory leaks; truncation of last frame
43
+ // 1.07 - 2015-01-16 - fixes for crashes on invalid files; warning fixes; const
44
+ // 1.06 - 2015-08-31 - full, correct support for seeking API (Dougall Johnson)
43
45
  // some crash fixes when out of memory or with corrupt files
44
46
  // fix some inappropriately signed shifts
45
- // 1.05 - 2015/04/19 - don't define __forceinline if it's redundant
46
- // 1.04 - 2014/08/27 - fix missing const-correct case in API
47
- // 1.03 - 2014/08/07 - warning fixes
48
- // 1.02 - 2014/07/09 - declare qsort comparison as explicitly _cdecl in Windows
49
- // 1.01 - 2014/06/18 - fix stb_vorbis_get_samples_float (interleaved was correct)
50
- // 1.0 - 2014/05/26 - fix memory leaks; fix warnings; fix bugs in >2-channel;
47
+ // 1.05 - 2015-04-19 - don't define __forceinline if it's redundant
48
+ // 1.04 - 2014-08-27 - fix missing const-correct case in API
49
+ // 1.03 - 2014-08-07 - warning fixes
50
+ // 1.02 - 2014-07-09 - declare qsort comparison as explicitly _cdecl in Windows
51
+ // 1.01 - 2014-06-18 - fix stb_vorbis_get_samples_float (interleaved was correct)
52
+ // 1.0 - 2014-05-26 - fix memory leaks; fix warnings; fix bugs in >2-channel;
51
53
  // (API change) report sample rate for decode-full-file funcs
52
54
  //
53
55
  // See end of file for full version history.
@@ -882,11 +884,7 @@ static int error(vorb *f, enum STBVorbisError e)
882
884
  #define array_size_required(count,size) (count*(sizeof(void *)+(size)))
883
885
 
884
886
  #define temp_alloc(f,size) (f->alloc.alloc_buffer ? setup_temp_malloc(f,size) : alloca(size))
885
- #ifdef dealloca
886
- #define temp_free(f,p) (f->alloc.alloc_buffer ? 0 : dealloca(size))
887
- #else
888
887
  #define temp_free(f,p) 0
889
- #endif
890
888
  #define temp_alloc_save(f) ((f)->temp_offset)
891
889
  #define temp_alloc_restore(f,p) ((f)->temp_offset = (p))
892
890
 
@@ -4057,6 +4055,7 @@ static int start_decoder(vorb *f)
4057
4055
  f->previous_window[i] = (float *) setup_malloc(f, sizeof(float) * f->blocksize_1/2);
4058
4056
  f->finalY[i] = (int16 *) setup_malloc(f, sizeof(int16) * longest_floorlist);
4059
4057
  if (f->channel_buffers[i] == NULL || f->previous_window[i] == NULL || f->finalY[i] == NULL) return error(f, VORBIS_outofmem);
4058
+ memset(f->channel_buffers[i], 0, sizeof(float) * f->blocksize_1);
4060
4059
  #ifdef STB_VORBIS_NO_DEFER_FLOOR
4061
4060
  f->floor_buffers[i] = (float *) setup_malloc(f, sizeof(float) * f->blocksize_1/2);
4062
4061
  if (f->floor_buffers[i] == NULL) return error(f, VORBIS_outofmem);
@@ -5363,22 +5362,22 @@ int stb_vorbis_get_samples_float(stb_vorbis *f, int channels, float **buffer, in
5363
5362
  #endif // STB_VORBIS_NO_PULLDATA_API
5364
5363
 
5365
5364
  /* Version history
5366
- 1.12 - 2017/11/21 - limit residue begin/end to blocksize/2 to avoid large temp allocs in bad/corrupt files
5367
- 1.11 - 2017/07/23 - fix MinGW compilation
5368
- 1.10 - 2017/03/03 - more robust seeking; fix negative ilog(); clear error in open_memory
5369
- 1.09 - 2016/04/04 - back out 'avoid discarding last frame' fix from previous version
5370
- 1.08 - 2016/04/02 - fixed multiple warnings; fix setup memory leaks;
5365
+ 1.12 - 2017-11-21 - limit residue begin/end to blocksize/2 to avoid large temp allocs in bad/corrupt files
5366
+ 1.11 - 2017-07-23 - fix MinGW compilation
5367
+ 1.10 - 2017-03-03 - more robust seeking; fix negative ilog(); clear error in open_memory
5368
+ 1.09 - 2016-04-04 - back out 'avoid discarding last frame' fix from previous version
5369
+ 1.08 - 2016-04-02 - fixed multiple warnings; fix setup memory leaks;
5371
5370
  avoid discarding last frame of audio data
5372
- 1.07 - 2015/01/16 - fixed some warnings, fix mingw, const-correct API
5371
+ 1.07 - 2015-01-16 - fixed some warnings, fix mingw, const-correct API
5373
5372
  some more crash fixes when out of memory or with corrupt files
5374
- 1.06 - 2015/08/31 - full, correct support for seeking API (Dougall Johnson)
5373
+ 1.06 - 2015-08-31 - full, correct support for seeking API (Dougall Johnson)
5375
5374
  some crash fixes when out of memory or with corrupt files
5376
- 1.05 - 2015/04/19 - don't define __forceinline if it's redundant
5377
- 1.04 - 2014/08/27 - fix missing const-correct case in API
5378
- 1.03 - 2014/08/07 - Warning fixes
5379
- 1.02 - 2014/07/09 - Declare qsort compare function _cdecl on windows
5380
- 1.01 - 2014/06/18 - fix stb_vorbis_get_samples_float
5381
- 1.0 - 2014/05/26 - fix memory leaks; fix warnings; fix bugs in multichannel
5375
+ 1.05 - 2015-04-19 - don't define __forceinline if it's redundant
5376
+ 1.04 - 2014-08-27 - fix missing const-correct case in API
5377
+ 1.03 - 2014-08-07 - Warning fixes
5378
+ 1.02 - 2014-07-09 - Declare qsort compare function _cdecl on windows
5379
+ 1.01 - 2014-06-18 - fix stb_vorbis_get_samples_float
5380
+ 1.0 - 2014-05-26 - fix memory leaks; fix warnings; fix bugs in multichannel
5382
5381
  (API change) report sample rate for decode-full-file funcs
5383
5382
  0.99996 - bracket #include <malloc.h> for macintosh compilation by Laurent Gomila
5384
5383
  0.99995 - use union instead of pointer-cast for fast-float-to-int to avoid alias-optimization problem
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gosu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.0
4
+ version: 0.14.3.pre1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julian Raschke
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-17 00:00:00.000000000 Z
11
+ date: 2018-10-08 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |2
14
14
  2D game development library.
@@ -162,9 +162,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
162
162
  version: 1.9.3
163
163
  required_rubygems_version: !ruby/object:Gem::Requirement
164
164
  requirements:
165
- - - ">="
165
+ - - ">"
166
166
  - !ruby/object:Gem::Version
167
- version: '0'
167
+ version: 1.3.1
168
168
  requirements: []
169
169
  rubyforge_project:
170
170
  rubygems_version: 2.7.6