wavefile 0.8.1 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (117) hide show
  1. checksums.yaml +5 -5
  2. data/LICENSE +1 -1
  3. data/README.markdown +33 -28
  4. data/Rakefile +2 -2
  5. data/lib/wavefile.rb +5 -5
  6. data/lib/wavefile/chunk_readers/format_chunk_reader.rb +1 -1
  7. data/lib/wavefile/duration.rb +1 -1
  8. data/lib/wavefile/format.rb +120 -29
  9. data/lib/wavefile/reader.rb +18 -16
  10. data/lib/wavefile/unvalidated_format.rb +51 -3
  11. data/lib/wavefile/writer.rb +74 -21
  12. data/test/buffer_test.rb +13 -10
  13. data/test/chunk_readers/format_chunk_reader_test.rb +40 -40
  14. data/test/fixtures/{invalid → wave/invalid}/bad_riff_header.wav +0 -0
  15. data/test/fixtures/{invalid → wave/invalid}/bad_wavefile_format.wav +0 -0
  16. data/test/fixtures/{invalid → wave/invalid}/empty.wav +0 -0
  17. data/test/fixtures/{invalid → wave/invalid}/empty_format_chunk.wav +0 -0
  18. data/test/fixtures/{invalid → wave/invalid}/incomplete_riff_header.wav +0 -0
  19. data/test/fixtures/{invalid → wave/invalid}/insufficient_format_chunk.wav +0 -0
  20. data/test/fixtures/{invalid → wave/invalid}/no_data_chunk.wav +0 -0
  21. data/test/fixtures/{invalid → wave/invalid}/no_format_chunk.wav +0 -0
  22. data/test/fixtures/{unsupported → wave/unsupported}/bad_audio_format.wav +0 -0
  23. data/test/fixtures/{unsupported → wave/unsupported}/bad_channel_count.wav +0 -0
  24. data/test/fixtures/{unsupported → wave/unsupported}/bad_sample_rate.wav +0 -0
  25. data/test/fixtures/{unsupported → wave/unsupported}/extensible_container_size_bigger_than_sample_size.wav +0 -0
  26. data/test/fixtures/wave/unsupported/extensible_unsupported_subformat_guid.wav +0 -0
  27. data/test/fixtures/{unsupported → wave/unsupported}/unsupported_audio_format.wav +0 -0
  28. data/test/fixtures/{unsupported → wave/unsupported}/unsupported_bits_per_sample.wav +0 -0
  29. data/test/fixtures/{valid → wave/valid}/no_samples.wav +0 -0
  30. data/test/fixtures/wave/valid/valid_extensible_20_pcm_16_44100_speaker_mapping_overflow.wav +0 -0
  31. data/test/fixtures/{valid → wave/valid}/valid_extensible_mono_float_32_44100.wav +0 -0
  32. data/test/fixtures/{valid → wave/valid}/valid_extensible_mono_float_64_44100.wav +0 -0
  33. data/test/fixtures/wave/valid/valid_extensible_mono_pcm_16_44100.wav +0 -0
  34. data/test/fixtures/wave/valid/valid_extensible_mono_pcm_16_44100_non_default_speaker_mapping.wav +0 -0
  35. data/test/fixtures/wave/valid/valid_extensible_mono_pcm_24_44100.wav +0 -0
  36. data/test/fixtures/wave/valid/valid_extensible_mono_pcm_32_44100.wav +0 -0
  37. data/test/fixtures/wave/valid/valid_extensible_mono_pcm_8_44100.wav +0 -0
  38. data/test/fixtures/{valid → wave/valid}/valid_extensible_stereo_float_32_44100.wav +0 -0
  39. data/test/fixtures/{valid → wave/valid}/valid_extensible_stereo_float_64_44100.wav +0 -0
  40. data/test/fixtures/wave/valid/valid_extensible_stereo_pcm_16_44100.wav +0 -0
  41. data/test/fixtures/wave/valid/valid_extensible_stereo_pcm_16_44100_center_right_speakers.wav +0 -0
  42. data/test/fixtures/wave/valid/valid_extensible_stereo_pcm_16_44100_more_speakers_than_channels.wav +0 -0
  43. data/test/fixtures/wave/valid/valid_extensible_stereo_pcm_16_44100_more_speakers_than_defined_by_spec.wav +0 -0
  44. data/test/fixtures/wave/valid/valid_extensible_stereo_pcm_16_44100_only_undefined_high_bit_speakers.wav +0 -0
  45. data/test/fixtures/wave/valid/valid_extensible_stereo_pcm_24_44100.wav +0 -0
  46. data/test/fixtures/wave/valid/valid_extensible_stereo_pcm_24_44100_incomplete_speaker_mapping.wav +0 -0
  47. data/test/fixtures/wave/valid/valid_extensible_stereo_pcm_24_44100_no_speaker_mapping.wav +0 -0
  48. data/test/fixtures/wave/valid/valid_extensible_stereo_pcm_32_44100.wav +0 -0
  49. data/test/fixtures/wave/valid/valid_extensible_stereo_pcm_8_44100.wav +0 -0
  50. data/test/fixtures/{valid → wave/valid}/valid_extensible_tri_float_32_44100.wav +0 -0
  51. data/test/fixtures/{valid → wave/valid}/valid_extensible_tri_float_64_44100.wav +0 -0
  52. data/test/fixtures/wave/valid/valid_extensible_tri_pcm_16_44100.wav +0 -0
  53. data/test/fixtures/wave/valid/valid_extensible_tri_pcm_16_44100_custom_speaker_mapping.wav +0 -0
  54. data/test/fixtures/wave/valid/valid_extensible_tri_pcm_24_44100.wav +0 -0
  55. data/test/fixtures/wave/valid/valid_extensible_tri_pcm_32_44100.wav +0 -0
  56. data/test/fixtures/wave/valid/valid_extensible_tri_pcm_8_44100.wav +0 -0
  57. data/test/fixtures/{valid → wave/valid}/valid_mono_float_32_44100.wav +0 -0
  58. data/test/fixtures/{valid → wave/valid}/valid_mono_float_64_44100.wav +0 -0
  59. data/test/fixtures/{valid → wave/valid}/valid_mono_pcm_16_44100.wav +0 -0
  60. data/test/fixtures/{valid → wave/valid}/valid_mono_pcm_16_44100_junk_chunk_with_padding_byte.wav +0 -0
  61. data/test/fixtures/wave/valid/valid_mono_pcm_16_44100_with_extension.wav +0 -0
  62. data/test/fixtures/{valid → wave/valid}/valid_mono_pcm_24_44100.wav +0 -0
  63. data/test/fixtures/{valid → wave/valid}/valid_mono_pcm_32_44100.wav +0 -0
  64. data/test/fixtures/{valid → wave/valid}/valid_mono_pcm_8_44100.wav +0 -0
  65. data/test/fixtures/{valid → wave/valid}/valid_mono_pcm_8_44100_with_padding_byte.wav +0 -0
  66. data/test/fixtures/{valid → wave/valid}/valid_stereo_float_32_44100.wav +0 -0
  67. data/test/fixtures/{valid → wave/valid}/valid_stereo_float_64_44100.wav +0 -0
  68. data/test/fixtures/{valid → wave/valid}/valid_stereo_pcm_16_44100.wav +0 -0
  69. data/test/fixtures/{valid → wave/valid}/valid_stereo_pcm_24_44100.wav +0 -0
  70. data/test/fixtures/{valid → wave/valid}/valid_stereo_pcm_32_44100.wav +0 -0
  71. data/test/fixtures/{valid → wave/valid}/valid_stereo_pcm_8_44100.wav +0 -0
  72. data/test/fixtures/{valid → wave/valid}/valid_tri_float_32_44100.wav +0 -0
  73. data/test/fixtures/{valid → wave/valid}/valid_tri_float_64_44100.wav +0 -0
  74. data/test/fixtures/{valid → wave/valid}/valid_tri_pcm_16_44100.wav +0 -0
  75. data/test/fixtures/{valid → wave/valid}/valid_tri_pcm_24_44100.wav +0 -0
  76. data/test/fixtures/{valid → wave/valid}/valid_tri_pcm_32_44100.wav +0 -0
  77. data/test/fixtures/{valid → wave/valid}/valid_tri_pcm_8_44100.wav +0 -0
  78. data/test/format_test.rb +189 -3
  79. data/test/reader_test.rb +179 -4
  80. data/test/unvalidated_format_test.rb +181 -6
  81. data/test/wavefile_io_test_helper.rb +11 -1
  82. data/test/writer_test.rb +246 -25
  83. metadata +70 -80
  84. data/test/fixtures/actual_output/total_duration_mono_float_32_44100.wav +0 -0
  85. data/test/fixtures/actual_output/total_duration_mono_float_64_44100.wav +0 -0
  86. data/test/fixtures/actual_output/total_duration_mono_pcm_16_44100.wav +0 -0
  87. data/test/fixtures/actual_output/total_duration_mono_pcm_24_44100.wav +0 -0
  88. data/test/fixtures/actual_output/total_duration_mono_pcm_32_44100.wav +0 -0
  89. data/test/fixtures/actual_output/total_duration_mono_pcm_8_44100.wav +0 -0
  90. data/test/fixtures/actual_output/total_duration_stereo_float_32_44100.wav +0 -0
  91. data/test/fixtures/actual_output/total_duration_stereo_float_64_44100.wav +0 -0
  92. data/test/fixtures/actual_output/total_duration_stereo_pcm_16_44100.wav +0 -0
  93. data/test/fixtures/actual_output/total_duration_stereo_pcm_24_44100.wav +0 -0
  94. data/test/fixtures/actual_output/total_duration_stereo_pcm_32_44100.wav +0 -0
  95. data/test/fixtures/actual_output/total_duration_stereo_pcm_8_44100.wav +0 -0
  96. data/test/fixtures/actual_output/total_duration_tri_float_32_44100.wav +0 -0
  97. data/test/fixtures/actual_output/total_duration_tri_float_64_44100.wav +0 -0
  98. data/test/fixtures/actual_output/total_duration_tri_pcm_16_44100.wav +0 -0
  99. data/test/fixtures/actual_output/total_duration_tri_pcm_24_44100.wav +0 -0
  100. data/test/fixtures/actual_output/total_duration_tri_pcm_32_44100.wav +0 -0
  101. data/test/fixtures/actual_output/total_duration_tri_pcm_8_44100.wav +0 -0
  102. data/test/fixtures/invalid/README.markdown +0 -10
  103. data/test/fixtures/unsupported/README.markdown +0 -6
  104. data/test/fixtures/unsupported/extensible_unsupported_subformat_guid.wav +0 -0
  105. data/test/fixtures/valid/README.markdown +0 -3
  106. data/test/fixtures/valid/valid_extensible_mono_pcm_16_44100.wav +0 -0
  107. data/test/fixtures/valid/valid_extensible_mono_pcm_24_44100.wav +0 -0
  108. data/test/fixtures/valid/valid_extensible_mono_pcm_32_44100.wav +0 -0
  109. data/test/fixtures/valid/valid_extensible_mono_pcm_8_44100.wav +0 -0
  110. data/test/fixtures/valid/valid_extensible_stereo_pcm_16_44100.wav +0 -0
  111. data/test/fixtures/valid/valid_extensible_stereo_pcm_24_44100.wav +0 -0
  112. data/test/fixtures/valid/valid_extensible_stereo_pcm_32_44100.wav +0 -0
  113. data/test/fixtures/valid/valid_extensible_stereo_pcm_8_44100.wav +0 -0
  114. data/test/fixtures/valid/valid_extensible_tri_pcm_16_44100.wav +0 -0
  115. data/test/fixtures/valid/valid_extensible_tri_pcm_24_44100.wav +0 -0
  116. data/test/fixtures/valid/valid_extensible_tri_pcm_32_44100.wav +0 -0
  117. data/test/fixtures/valid/valid_extensible_tri_pcm_8_44100.wav +0 -0
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wavefile
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joel Strait
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-01 00:00:00.000000000 Z
11
+ date: 2018-06-10 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: You can use this gem to create Ruby programs that work with audio, by
14
14
  reading and writing Wave sound files (*.wav). Since it is written in pure Ruby (as
@@ -39,81 +39,70 @@ files:
39
39
  - test/buffer_test.rb
40
40
  - test/chunk_readers/format_chunk_reader_test.rb
41
41
  - test/duration_test.rb
42
- - test/fixtures/actual_output/total_duration_mono_float_32_44100.wav
43
- - test/fixtures/actual_output/total_duration_mono_float_64_44100.wav
44
- - test/fixtures/actual_output/total_duration_mono_pcm_16_44100.wav
45
- - test/fixtures/actual_output/total_duration_mono_pcm_24_44100.wav
46
- - test/fixtures/actual_output/total_duration_mono_pcm_32_44100.wav
47
- - test/fixtures/actual_output/total_duration_mono_pcm_8_44100.wav
48
- - test/fixtures/actual_output/total_duration_stereo_float_32_44100.wav
49
- - test/fixtures/actual_output/total_duration_stereo_float_64_44100.wav
50
- - test/fixtures/actual_output/total_duration_stereo_pcm_16_44100.wav
51
- - test/fixtures/actual_output/total_duration_stereo_pcm_24_44100.wav
52
- - test/fixtures/actual_output/total_duration_stereo_pcm_32_44100.wav
53
- - test/fixtures/actual_output/total_duration_stereo_pcm_8_44100.wav
54
- - test/fixtures/actual_output/total_duration_tri_float_32_44100.wav
55
- - test/fixtures/actual_output/total_duration_tri_float_64_44100.wav
56
- - test/fixtures/actual_output/total_duration_tri_pcm_16_44100.wav
57
- - test/fixtures/actual_output/total_duration_tri_pcm_24_44100.wav
58
- - test/fixtures/actual_output/total_duration_tri_pcm_32_44100.wav
59
- - test/fixtures/actual_output/total_duration_tri_pcm_8_44100.wav
60
- - test/fixtures/invalid/README.markdown
61
- - test/fixtures/invalid/bad_riff_header.wav
62
- - test/fixtures/invalid/bad_wavefile_format.wav
63
- - test/fixtures/invalid/empty.wav
64
- - test/fixtures/invalid/empty_format_chunk.wav
65
- - test/fixtures/invalid/incomplete_riff_header.wav
66
- - test/fixtures/invalid/insufficient_format_chunk.wav
67
- - test/fixtures/invalid/no_data_chunk.wav
68
- - test/fixtures/invalid/no_format_chunk.wav
69
- - test/fixtures/unsupported/README.markdown
70
- - test/fixtures/unsupported/bad_audio_format.wav
71
- - test/fixtures/unsupported/bad_channel_count.wav
72
- - test/fixtures/unsupported/bad_sample_rate.wav
73
- - test/fixtures/unsupported/extensible_container_size_bigger_than_sample_size.wav
74
- - test/fixtures/unsupported/extensible_unsupported_subformat_guid.wav
75
- - test/fixtures/unsupported/unsupported_audio_format.wav
76
- - test/fixtures/unsupported/unsupported_bits_per_sample.wav
77
- - test/fixtures/valid/README.markdown
78
- - test/fixtures/valid/no_samples.wav
79
- - test/fixtures/valid/valid_extensible_mono_float_32_44100.wav
80
- - test/fixtures/valid/valid_extensible_mono_float_64_44100.wav
81
- - test/fixtures/valid/valid_extensible_mono_pcm_16_44100.wav
82
- - test/fixtures/valid/valid_extensible_mono_pcm_24_44100.wav
83
- - test/fixtures/valid/valid_extensible_mono_pcm_32_44100.wav
84
- - test/fixtures/valid/valid_extensible_mono_pcm_8_44100.wav
85
- - test/fixtures/valid/valid_extensible_stereo_float_32_44100.wav
86
- - test/fixtures/valid/valid_extensible_stereo_float_64_44100.wav
87
- - test/fixtures/valid/valid_extensible_stereo_pcm_16_44100.wav
88
- - test/fixtures/valid/valid_extensible_stereo_pcm_24_44100.wav
89
- - test/fixtures/valid/valid_extensible_stereo_pcm_32_44100.wav
90
- - test/fixtures/valid/valid_extensible_stereo_pcm_8_44100.wav
91
- - test/fixtures/valid/valid_extensible_tri_float_32_44100.wav
92
- - test/fixtures/valid/valid_extensible_tri_float_64_44100.wav
93
- - test/fixtures/valid/valid_extensible_tri_pcm_16_44100.wav
94
- - test/fixtures/valid/valid_extensible_tri_pcm_24_44100.wav
95
- - test/fixtures/valid/valid_extensible_tri_pcm_32_44100.wav
96
- - test/fixtures/valid/valid_extensible_tri_pcm_8_44100.wav
97
- - test/fixtures/valid/valid_mono_float_32_44100.wav
98
- - test/fixtures/valid/valid_mono_float_64_44100.wav
99
- - test/fixtures/valid/valid_mono_pcm_16_44100.wav
100
- - test/fixtures/valid/valid_mono_pcm_16_44100_junk_chunk_with_padding_byte.wav
101
- - test/fixtures/valid/valid_mono_pcm_24_44100.wav
102
- - test/fixtures/valid/valid_mono_pcm_32_44100.wav
103
- - test/fixtures/valid/valid_mono_pcm_8_44100.wav
104
- - test/fixtures/valid/valid_mono_pcm_8_44100_with_padding_byte.wav
105
- - test/fixtures/valid/valid_stereo_float_32_44100.wav
106
- - test/fixtures/valid/valid_stereo_float_64_44100.wav
107
- - test/fixtures/valid/valid_stereo_pcm_16_44100.wav
108
- - test/fixtures/valid/valid_stereo_pcm_24_44100.wav
109
- - test/fixtures/valid/valid_stereo_pcm_32_44100.wav
110
- - test/fixtures/valid/valid_stereo_pcm_8_44100.wav
111
- - test/fixtures/valid/valid_tri_float_32_44100.wav
112
- - test/fixtures/valid/valid_tri_float_64_44100.wav
113
- - test/fixtures/valid/valid_tri_pcm_16_44100.wav
114
- - test/fixtures/valid/valid_tri_pcm_24_44100.wav
115
- - test/fixtures/valid/valid_tri_pcm_32_44100.wav
116
- - test/fixtures/valid/valid_tri_pcm_8_44100.wav
42
+ - test/fixtures/wave/invalid/bad_riff_header.wav
43
+ - test/fixtures/wave/invalid/bad_wavefile_format.wav
44
+ - test/fixtures/wave/invalid/empty.wav
45
+ - test/fixtures/wave/invalid/empty_format_chunk.wav
46
+ - test/fixtures/wave/invalid/incomplete_riff_header.wav
47
+ - test/fixtures/wave/invalid/insufficient_format_chunk.wav
48
+ - test/fixtures/wave/invalid/no_data_chunk.wav
49
+ - test/fixtures/wave/invalid/no_format_chunk.wav
50
+ - test/fixtures/wave/unsupported/bad_audio_format.wav
51
+ - test/fixtures/wave/unsupported/bad_channel_count.wav
52
+ - test/fixtures/wave/unsupported/bad_sample_rate.wav
53
+ - test/fixtures/wave/unsupported/extensible_container_size_bigger_than_sample_size.wav
54
+ - test/fixtures/wave/unsupported/extensible_unsupported_subformat_guid.wav
55
+ - test/fixtures/wave/unsupported/unsupported_audio_format.wav
56
+ - test/fixtures/wave/unsupported/unsupported_bits_per_sample.wav
57
+ - test/fixtures/wave/valid/no_samples.wav
58
+ - test/fixtures/wave/valid/valid_extensible_20_pcm_16_44100_speaker_mapping_overflow.wav
59
+ - test/fixtures/wave/valid/valid_extensible_mono_float_32_44100.wav
60
+ - test/fixtures/wave/valid/valid_extensible_mono_float_64_44100.wav
61
+ - test/fixtures/wave/valid/valid_extensible_mono_pcm_16_44100.wav
62
+ - test/fixtures/wave/valid/valid_extensible_mono_pcm_16_44100_non_default_speaker_mapping.wav
63
+ - test/fixtures/wave/valid/valid_extensible_mono_pcm_24_44100.wav
64
+ - test/fixtures/wave/valid/valid_extensible_mono_pcm_32_44100.wav
65
+ - test/fixtures/wave/valid/valid_extensible_mono_pcm_8_44100.wav
66
+ - test/fixtures/wave/valid/valid_extensible_stereo_float_32_44100.wav
67
+ - test/fixtures/wave/valid/valid_extensible_stereo_float_64_44100.wav
68
+ - test/fixtures/wave/valid/valid_extensible_stereo_pcm_16_44100.wav
69
+ - test/fixtures/wave/valid/valid_extensible_stereo_pcm_16_44100_center_right_speakers.wav
70
+ - test/fixtures/wave/valid/valid_extensible_stereo_pcm_16_44100_more_speakers_than_channels.wav
71
+ - test/fixtures/wave/valid/valid_extensible_stereo_pcm_16_44100_more_speakers_than_defined_by_spec.wav
72
+ - test/fixtures/wave/valid/valid_extensible_stereo_pcm_16_44100_only_undefined_high_bit_speakers.wav
73
+ - test/fixtures/wave/valid/valid_extensible_stereo_pcm_24_44100.wav
74
+ - test/fixtures/wave/valid/valid_extensible_stereo_pcm_24_44100_incomplete_speaker_mapping.wav
75
+ - test/fixtures/wave/valid/valid_extensible_stereo_pcm_24_44100_no_speaker_mapping.wav
76
+ - test/fixtures/wave/valid/valid_extensible_stereo_pcm_32_44100.wav
77
+ - test/fixtures/wave/valid/valid_extensible_stereo_pcm_8_44100.wav
78
+ - test/fixtures/wave/valid/valid_extensible_tri_float_32_44100.wav
79
+ - test/fixtures/wave/valid/valid_extensible_tri_float_64_44100.wav
80
+ - test/fixtures/wave/valid/valid_extensible_tri_pcm_16_44100.wav
81
+ - test/fixtures/wave/valid/valid_extensible_tri_pcm_16_44100_custom_speaker_mapping.wav
82
+ - test/fixtures/wave/valid/valid_extensible_tri_pcm_24_44100.wav
83
+ - test/fixtures/wave/valid/valid_extensible_tri_pcm_32_44100.wav
84
+ - test/fixtures/wave/valid/valid_extensible_tri_pcm_8_44100.wav
85
+ - test/fixtures/wave/valid/valid_mono_float_32_44100.wav
86
+ - test/fixtures/wave/valid/valid_mono_float_64_44100.wav
87
+ - test/fixtures/wave/valid/valid_mono_pcm_16_44100.wav
88
+ - test/fixtures/wave/valid/valid_mono_pcm_16_44100_junk_chunk_with_padding_byte.wav
89
+ - test/fixtures/wave/valid/valid_mono_pcm_16_44100_with_extension.wav
90
+ - test/fixtures/wave/valid/valid_mono_pcm_24_44100.wav
91
+ - test/fixtures/wave/valid/valid_mono_pcm_32_44100.wav
92
+ - test/fixtures/wave/valid/valid_mono_pcm_8_44100.wav
93
+ - test/fixtures/wave/valid/valid_mono_pcm_8_44100_with_padding_byte.wav
94
+ - test/fixtures/wave/valid/valid_stereo_float_32_44100.wav
95
+ - test/fixtures/wave/valid/valid_stereo_float_64_44100.wav
96
+ - test/fixtures/wave/valid/valid_stereo_pcm_16_44100.wav
97
+ - test/fixtures/wave/valid/valid_stereo_pcm_24_44100.wav
98
+ - test/fixtures/wave/valid/valid_stereo_pcm_32_44100.wav
99
+ - test/fixtures/wave/valid/valid_stereo_pcm_8_44100.wav
100
+ - test/fixtures/wave/valid/valid_tri_float_32_44100.wav
101
+ - test/fixtures/wave/valid/valid_tri_float_64_44100.wav
102
+ - test/fixtures/wave/valid/valid_tri_pcm_16_44100.wav
103
+ - test/fixtures/wave/valid/valid_tri_pcm_24_44100.wav
104
+ - test/fixtures/wave/valid/valid_tri_pcm_32_44100.wav
105
+ - test/fixtures/wave/valid/valid_tri_pcm_8_44100.wav
117
106
  - test/format_test.rb
118
107
  - test/reader_test.rb
119
108
  - test/unvalidated_format_test.rb
@@ -123,7 +112,8 @@ homepage: http://wavefilegem.com/
123
112
  licenses:
124
113
  - MIT
125
114
  metadata: {}
126
- post_install_message:
115
+ post_install_message: Thanks for installing the WaveFile gem! For documentation and
116
+ examples, visit http://wavefilegem.com
127
117
  rdoc_options: []
128
118
  require_paths:
129
119
  - lib
@@ -131,7 +121,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
131
121
  requirements:
132
122
  - - ">="
133
123
  - !ruby/object:Gem::Version
134
- version: 1.9.3
124
+ version: '2.0'
135
125
  required_rubygems_version: !ruby/object:Gem::Requirement
136
126
  requirements:
137
127
  - - ">="
@@ -139,7 +129,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
139
129
  version: '0'
140
130
  requirements: []
141
131
  rubyforge_project:
142
- rubygems_version: 2.6.10
132
+ rubygems_version: 2.7.6
143
133
  signing_key:
144
134
  specification_version: 4
145
135
  summary: A pure Ruby library for reading and writing Wave sound files (*.wav)
@@ -1,10 +0,0 @@
1
- The files in this folder are not valid wave files, and should not be readable by the WaveFile gem and other audio tools/programs.
2
-
3
- * **empty.wav** - An empty file, size of 0 bytes.
4
- * **incomplete_riff_header.wav** - The file consists of the characters "RIFF" and nothing else.
5
- * **bad_riff_header.wav** - The first four bytes in the file are not "RIFF", which is a magic number required for wave files.
6
- * **bad_wavefile_format.wav** - The format code inside the RIFF header is not "WAVE".
7
- * **no_format_chunk.wav** - The file contains a valid RIFF header, but not after that.
8
- * **empty_format_chunk.wav** - The format chunk has no data in it, despite the format chunk header indicating is is 16 bytes long.
9
- * **insufficient_format_chunk.wav** - The format chunk has some data, but not the minimum amount required.
10
- * **no_data_chunk.wav** - The RIFF header and format chunk are valid, but there is no data chunk.
@@ -1,6 +0,0 @@
1
- The files in this folder are wave files that do not violate the wave file spec, but can not be read by the WaveFile gem.
2
-
3
- * **unsupported_audio_format.wav** - The audio format defined in the format chunk is 2, or ADPCM. While a valid format, this gem only supports 1 (PCM).
4
- * **unsupported_bits_per_sample.wav** - The bits per sample is 20, which is not supported by this gem.
5
- * **bad_channel_count.wav** - The channel count defined in the format chunk is 0.
6
- * **bad_sample_rate.wav** - The sample rate defined in the format chunk is 0.
@@ -1,3 +0,0 @@
1
- The files in this folder are valid wave files that the WaveFile gem should be able to read.
2
-
3
- Note that these files won't necessarily sound like anything if you play them. They intentionally have a small amount of sample data to make tests easy to write and test failures easier to diagnose.