wavefile 0.8.1 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/LICENSE +1 -1
- data/README.markdown +33 -28
- data/Rakefile +2 -2
- data/lib/wavefile.rb +5 -5
- data/lib/wavefile/chunk_readers/format_chunk_reader.rb +1 -1
- data/lib/wavefile/duration.rb +1 -1
- data/lib/wavefile/format.rb +120 -29
- data/lib/wavefile/reader.rb +18 -16
- data/lib/wavefile/unvalidated_format.rb +51 -3
- data/lib/wavefile/writer.rb +74 -21
- data/test/buffer_test.rb +13 -10
- data/test/chunk_readers/format_chunk_reader_test.rb +40 -40
- data/test/fixtures/{invalid → wave/invalid}/bad_riff_header.wav +0 -0
- data/test/fixtures/{invalid → wave/invalid}/bad_wavefile_format.wav +0 -0
- data/test/fixtures/{invalid → wave/invalid}/empty.wav +0 -0
- data/test/fixtures/{invalid → wave/invalid}/empty_format_chunk.wav +0 -0
- data/test/fixtures/{invalid → wave/invalid}/incomplete_riff_header.wav +0 -0
- data/test/fixtures/{invalid → wave/invalid}/insufficient_format_chunk.wav +0 -0
- data/test/fixtures/{invalid → wave/invalid}/no_data_chunk.wav +0 -0
- data/test/fixtures/{invalid → wave/invalid}/no_format_chunk.wav +0 -0
- data/test/fixtures/{unsupported → wave/unsupported}/bad_audio_format.wav +0 -0
- data/test/fixtures/{unsupported → wave/unsupported}/bad_channel_count.wav +0 -0
- data/test/fixtures/{unsupported → wave/unsupported}/bad_sample_rate.wav +0 -0
- data/test/fixtures/{unsupported → wave/unsupported}/extensible_container_size_bigger_than_sample_size.wav +0 -0
- data/test/fixtures/wave/unsupported/extensible_unsupported_subformat_guid.wav +0 -0
- data/test/fixtures/{unsupported → wave/unsupported}/unsupported_audio_format.wav +0 -0
- data/test/fixtures/{unsupported → wave/unsupported}/unsupported_bits_per_sample.wav +0 -0
- data/test/fixtures/{valid → wave/valid}/no_samples.wav +0 -0
- data/test/fixtures/wave/valid/valid_extensible_20_pcm_16_44100_speaker_mapping_overflow.wav +0 -0
- data/test/fixtures/{valid → wave/valid}/valid_extensible_mono_float_32_44100.wav +0 -0
- data/test/fixtures/{valid → wave/valid}/valid_extensible_mono_float_64_44100.wav +0 -0
- data/test/fixtures/wave/valid/valid_extensible_mono_pcm_16_44100.wav +0 -0
- data/test/fixtures/wave/valid/valid_extensible_mono_pcm_16_44100_non_default_speaker_mapping.wav +0 -0
- data/test/fixtures/wave/valid/valid_extensible_mono_pcm_24_44100.wav +0 -0
- data/test/fixtures/wave/valid/valid_extensible_mono_pcm_32_44100.wav +0 -0
- data/test/fixtures/wave/valid/valid_extensible_mono_pcm_8_44100.wav +0 -0
- data/test/fixtures/{valid → wave/valid}/valid_extensible_stereo_float_32_44100.wav +0 -0
- data/test/fixtures/{valid → wave/valid}/valid_extensible_stereo_float_64_44100.wav +0 -0
- data/test/fixtures/wave/valid/valid_extensible_stereo_pcm_16_44100.wav +0 -0
- data/test/fixtures/wave/valid/valid_extensible_stereo_pcm_16_44100_center_right_speakers.wav +0 -0
- data/test/fixtures/wave/valid/valid_extensible_stereo_pcm_16_44100_more_speakers_than_channels.wav +0 -0
- data/test/fixtures/wave/valid/valid_extensible_stereo_pcm_16_44100_more_speakers_than_defined_by_spec.wav +0 -0
- data/test/fixtures/wave/valid/valid_extensible_stereo_pcm_16_44100_only_undefined_high_bit_speakers.wav +0 -0
- data/test/fixtures/wave/valid/valid_extensible_stereo_pcm_24_44100.wav +0 -0
- data/test/fixtures/wave/valid/valid_extensible_stereo_pcm_24_44100_incomplete_speaker_mapping.wav +0 -0
- data/test/fixtures/wave/valid/valid_extensible_stereo_pcm_24_44100_no_speaker_mapping.wav +0 -0
- data/test/fixtures/wave/valid/valid_extensible_stereo_pcm_32_44100.wav +0 -0
- data/test/fixtures/wave/valid/valid_extensible_stereo_pcm_8_44100.wav +0 -0
- data/test/fixtures/{valid → wave/valid}/valid_extensible_tri_float_32_44100.wav +0 -0
- data/test/fixtures/{valid → wave/valid}/valid_extensible_tri_float_64_44100.wav +0 -0
- data/test/fixtures/wave/valid/valid_extensible_tri_pcm_16_44100.wav +0 -0
- data/test/fixtures/wave/valid/valid_extensible_tri_pcm_16_44100_custom_speaker_mapping.wav +0 -0
- data/test/fixtures/wave/valid/valid_extensible_tri_pcm_24_44100.wav +0 -0
- data/test/fixtures/wave/valid/valid_extensible_tri_pcm_32_44100.wav +0 -0
- data/test/fixtures/wave/valid/valid_extensible_tri_pcm_8_44100.wav +0 -0
- data/test/fixtures/{valid → wave/valid}/valid_mono_float_32_44100.wav +0 -0
- data/test/fixtures/{valid → wave/valid}/valid_mono_float_64_44100.wav +0 -0
- data/test/fixtures/{valid → wave/valid}/valid_mono_pcm_16_44100.wav +0 -0
- data/test/fixtures/{valid → wave/valid}/valid_mono_pcm_16_44100_junk_chunk_with_padding_byte.wav +0 -0
- data/test/fixtures/wave/valid/valid_mono_pcm_16_44100_with_extension.wav +0 -0
- data/test/fixtures/{valid → wave/valid}/valid_mono_pcm_24_44100.wav +0 -0
- data/test/fixtures/{valid → wave/valid}/valid_mono_pcm_32_44100.wav +0 -0
- data/test/fixtures/{valid → wave/valid}/valid_mono_pcm_8_44100.wav +0 -0
- data/test/fixtures/{valid → wave/valid}/valid_mono_pcm_8_44100_with_padding_byte.wav +0 -0
- data/test/fixtures/{valid → wave/valid}/valid_stereo_float_32_44100.wav +0 -0
- data/test/fixtures/{valid → wave/valid}/valid_stereo_float_64_44100.wav +0 -0
- data/test/fixtures/{valid → wave/valid}/valid_stereo_pcm_16_44100.wav +0 -0
- data/test/fixtures/{valid → wave/valid}/valid_stereo_pcm_24_44100.wav +0 -0
- data/test/fixtures/{valid → wave/valid}/valid_stereo_pcm_32_44100.wav +0 -0
- data/test/fixtures/{valid → wave/valid}/valid_stereo_pcm_8_44100.wav +0 -0
- data/test/fixtures/{valid → wave/valid}/valid_tri_float_32_44100.wav +0 -0
- data/test/fixtures/{valid → wave/valid}/valid_tri_float_64_44100.wav +0 -0
- data/test/fixtures/{valid → wave/valid}/valid_tri_pcm_16_44100.wav +0 -0
- data/test/fixtures/{valid → wave/valid}/valid_tri_pcm_24_44100.wav +0 -0
- data/test/fixtures/{valid → wave/valid}/valid_tri_pcm_32_44100.wav +0 -0
- data/test/fixtures/{valid → wave/valid}/valid_tri_pcm_8_44100.wav +0 -0
- data/test/format_test.rb +189 -3
- data/test/reader_test.rb +179 -4
- data/test/unvalidated_format_test.rb +181 -6
- data/test/wavefile_io_test_helper.rb +11 -1
- data/test/writer_test.rb +246 -25
- metadata +70 -80
- data/test/fixtures/actual_output/total_duration_mono_float_32_44100.wav +0 -0
- data/test/fixtures/actual_output/total_duration_mono_float_64_44100.wav +0 -0
- data/test/fixtures/actual_output/total_duration_mono_pcm_16_44100.wav +0 -0
- data/test/fixtures/actual_output/total_duration_mono_pcm_24_44100.wav +0 -0
- data/test/fixtures/actual_output/total_duration_mono_pcm_32_44100.wav +0 -0
- data/test/fixtures/actual_output/total_duration_mono_pcm_8_44100.wav +0 -0
- data/test/fixtures/actual_output/total_duration_stereo_float_32_44100.wav +0 -0
- data/test/fixtures/actual_output/total_duration_stereo_float_64_44100.wav +0 -0
- data/test/fixtures/actual_output/total_duration_stereo_pcm_16_44100.wav +0 -0
- data/test/fixtures/actual_output/total_duration_stereo_pcm_24_44100.wav +0 -0
- data/test/fixtures/actual_output/total_duration_stereo_pcm_32_44100.wav +0 -0
- data/test/fixtures/actual_output/total_duration_stereo_pcm_8_44100.wav +0 -0
- data/test/fixtures/actual_output/total_duration_tri_float_32_44100.wav +0 -0
- data/test/fixtures/actual_output/total_duration_tri_float_64_44100.wav +0 -0
- data/test/fixtures/actual_output/total_duration_tri_pcm_16_44100.wav +0 -0
- data/test/fixtures/actual_output/total_duration_tri_pcm_24_44100.wav +0 -0
- data/test/fixtures/actual_output/total_duration_tri_pcm_32_44100.wav +0 -0
- data/test/fixtures/actual_output/total_duration_tri_pcm_8_44100.wav +0 -0
- data/test/fixtures/invalid/README.markdown +0 -10
- data/test/fixtures/unsupported/README.markdown +0 -6
- data/test/fixtures/unsupported/extensible_unsupported_subformat_guid.wav +0 -0
- data/test/fixtures/valid/README.markdown +0 -3
- data/test/fixtures/valid/valid_extensible_mono_pcm_16_44100.wav +0 -0
- data/test/fixtures/valid/valid_extensible_mono_pcm_24_44100.wav +0 -0
- data/test/fixtures/valid/valid_extensible_mono_pcm_32_44100.wav +0 -0
- data/test/fixtures/valid/valid_extensible_mono_pcm_8_44100.wav +0 -0
- data/test/fixtures/valid/valid_extensible_stereo_pcm_16_44100.wav +0 -0
- data/test/fixtures/valid/valid_extensible_stereo_pcm_24_44100.wav +0 -0
- data/test/fixtures/valid/valid_extensible_stereo_pcm_32_44100.wav +0 -0
- data/test/fixtures/valid/valid_extensible_stereo_pcm_8_44100.wav +0 -0
- data/test/fixtures/valid/valid_extensible_tri_pcm_16_44100.wav +0 -0
- data/test/fixtures/valid/valid_extensible_tri_pcm_24_44100.wav +0 -0
- data/test/fixtures/valid/valid_extensible_tri_pcm_32_44100.wav +0 -0
- 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.
|
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:
|
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/
|
43
|
-
- test/fixtures/
|
44
|
-
- test/fixtures/
|
45
|
-
- test/fixtures/
|
46
|
-
- test/fixtures/
|
47
|
-
- test/fixtures/
|
48
|
-
- test/fixtures/
|
49
|
-
- test/fixtures/
|
50
|
-
- test/fixtures/
|
51
|
-
- test/fixtures/
|
52
|
-
- test/fixtures/
|
53
|
-
- test/fixtures/
|
54
|
-
- test/fixtures/
|
55
|
-
- test/fixtures/
|
56
|
-
- test/fixtures/
|
57
|
-
- test/fixtures/
|
58
|
-
- test/fixtures/
|
59
|
-
- test/fixtures/
|
60
|
-
- test/fixtures/
|
61
|
-
- test/fixtures/
|
62
|
-
- test/fixtures/
|
63
|
-
- test/fixtures/
|
64
|
-
- test/fixtures/
|
65
|
-
- test/fixtures/
|
66
|
-
- test/fixtures/
|
67
|
-
- test/fixtures/
|
68
|
-
- test/fixtures/
|
69
|
-
- test/fixtures/
|
70
|
-
- test/fixtures/
|
71
|
-
- test/fixtures/
|
72
|
-
- test/fixtures/
|
73
|
-
- test/fixtures/
|
74
|
-
- test/fixtures/
|
75
|
-
- test/fixtures/
|
76
|
-
- test/fixtures/
|
77
|
-
- test/fixtures/valid/
|
78
|
-
- test/fixtures/valid/
|
79
|
-
- test/fixtures/valid/
|
80
|
-
- test/fixtures/valid/
|
81
|
-
- test/fixtures/valid/
|
82
|
-
- test/fixtures/valid/
|
83
|
-
- test/fixtures/valid/
|
84
|
-
- test/fixtures/valid/
|
85
|
-
- test/fixtures/valid/
|
86
|
-
- test/fixtures/valid/
|
87
|
-
- test/fixtures/valid/
|
88
|
-
- test/fixtures/valid/
|
89
|
-
- test/fixtures/valid/
|
90
|
-
- test/fixtures/valid/
|
91
|
-
- test/fixtures/valid/
|
92
|
-
- test/fixtures/valid/
|
93
|
-
- test/fixtures/valid/
|
94
|
-
- test/fixtures/valid/
|
95
|
-
- test/fixtures/valid/
|
96
|
-
- test/fixtures/valid/
|
97
|
-
- test/fixtures/valid/
|
98
|
-
- test/fixtures/valid/
|
99
|
-
- test/fixtures/valid/
|
100
|
-
- test/fixtures/valid/
|
101
|
-
- test/fixtures/valid/
|
102
|
-
- test/fixtures/valid/
|
103
|
-
- test/fixtures/valid/
|
104
|
-
- test/fixtures/valid/
|
105
|
-
- test/fixtures/valid/
|
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:
|
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
|
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)
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -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.
|
Binary file
|
@@ -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.
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|