nu_wav 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/lib/nu_wav.rb +10 -2
  3. data/nu_wav.gemspec +14 -16
  4. metadata +29 -11
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.3.0
data/lib/nu_wav.rb CHANGED
@@ -1,6 +1,10 @@
1
1
  # http://www.prss.org/contentdepot/automation_specifications.cfm
2
2
  # Bill Kelly <billk <at> cts.com> http://article.gmane.org/gmane.comp.lang.ruby.general/43110
3
3
 
4
+ # BWF intro http://en.wikipedia.org/wiki/Broadcast_Wave_Format
5
+ # BWF basics http://tech.ebu.ch/docs/tech/tech3285.pdf
6
+ # BWF mpeg http://tech.ebu.ch/docs/tech/tech3285s1.pdf
7
+
4
8
  require 'rubygems'
5
9
  require 'mp3info'
6
10
  require 'date'
@@ -178,8 +182,12 @@ module NuWav
178
182
 
179
183
  #mext chunk
180
184
  mext = MextChunk.new
181
- mext.sound_information = 5
182
- mext.sound_information += 2 if mp3info.header[:padding]
185
+ # from what I can tell, a 7 indicates a homogenous 44100 or 22050 mpeg audio with no padding
186
+ mext.sound_information = 7
187
+
188
+ # from what I can tell, a 7 indicates a homogenous 44100 or 22050 mpeg audio with no padding
189
+ # if there is padding, it is more complicated, see sectin 2.2 here: http://tech.ebu.ch/docs/tech/tech3285s1.pdf
190
+ mext.sound_information = 5 if mp3info.header[:padding]
183
191
  mext.frame_size = calculate_mpeg_frame_size(mp3info)
184
192
  mext.ancillary_data_length = 0
185
193
  mext.ancillary_data_def = 0
data/nu_wav.gemspec CHANGED
@@ -1,46 +1,44 @@
1
1
  # Generated by jeweler
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{nu_wav}
8
- s.version = "0.2.0"
8
+ s.version = "0.3.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["kookster"]
12
- s.date = %q{2010-04-05}
12
+ s.date = %q{2011-03-02}
13
13
  s.description = %q{NuWav is a pure ruby audio WAV file parser and writer. It supports Broadcast Wave Format (BWF), inclluding MPEG audio data, and the public radio standard cart chunk.}
14
14
  s.email = %q{andrew@beginsinwonder.com}
15
15
  s.extra_rdoc_files = [
16
16
  "LICENSE",
17
- "README.rdoc"
17
+ "README.rdoc"
18
18
  ]
19
19
  s.files = [
20
20
  "LICENSE",
21
- "README.rdoc",
22
- "Rakefile",
23
- "VERSION",
24
- "lib/nu_wav.rb",
25
- "nu_wav.gemspec",
26
- "test/helper.rb",
27
- "test/test_nu_wav.rb"
21
+ "README.rdoc",
22
+ "Rakefile",
23
+ "VERSION",
24
+ "lib/nu_wav.rb",
25
+ "nu_wav.gemspec",
26
+ "test/helper.rb",
27
+ "test/test_nu_wav.rb"
28
28
  ]
29
29
  s.homepage = %q{http://github.com/kookster/nu_wav}
30
- s.rdoc_options = ["--charset=UTF-8"]
31
30
  s.require_paths = ["lib"]
32
- s.rubygems_version = %q{1.3.5}
31
+ s.rubygems_version = %q{1.4.2}
33
32
  s.summary = %q{NuWav is a pure ruby audio WAV file parser and writer.}
34
33
  s.test_files = [
35
34
  "test/helper.rb",
36
- "test/test_nu_wav.rb"
35
+ "test/test_nu_wav.rb"
37
36
  ]
38
37
 
39
38
  if s.respond_to? :specification_version then
40
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
41
39
  s.specification_version = 3
42
40
 
43
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
41
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
44
42
  s.add_runtime_dependency(%q<ruby-mp3info>, [">= 0.6.13"])
45
43
  else
46
44
  s.add_dependency(%q<ruby-mp3info>, [">= 0.6.13"])
metadata CHANGED
@@ -1,7 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nu_wav
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ hash: 19
5
+ prerelease:
6
+ segments:
7
+ - 0
8
+ - 3
9
+ - 0
10
+ version: 0.3.0
5
11
  platform: ruby
6
12
  authors:
7
13
  - kookster
@@ -9,19 +15,25 @@ autorequire:
9
15
  bindir: bin
10
16
  cert_chain: []
11
17
 
12
- date: 2010-04-05 00:00:00 -04:00
18
+ date: 2011-03-02 00:00:00 -05:00
13
19
  default_executable:
14
20
  dependencies:
15
21
  - !ruby/object:Gem::Dependency
16
22
  name: ruby-mp3info
17
- type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
20
26
  requirements:
21
27
  - - ">="
22
28
  - !ruby/object:Gem::Version
29
+ hash: 29
30
+ segments:
31
+ - 0
32
+ - 6
33
+ - 13
23
34
  version: 0.6.13
24
- version:
35
+ type: :runtime
36
+ version_requirements: *id001
25
37
  description: NuWav is a pure ruby audio WAV file parser and writer. It supports Broadcast Wave Format (BWF), inclluding MPEG audio data, and the public radio standard cart chunk.
26
38
  email: andrew@beginsinwonder.com
27
39
  executables: []
@@ -45,26 +57,32 @@ homepage: http://github.com/kookster/nu_wav
45
57
  licenses: []
46
58
 
47
59
  post_install_message:
48
- rdoc_options:
49
- - --charset=UTF-8
60
+ rdoc_options: []
61
+
50
62
  require_paths:
51
63
  - lib
52
64
  required_ruby_version: !ruby/object:Gem::Requirement
65
+ none: false
53
66
  requirements:
54
67
  - - ">="
55
68
  - !ruby/object:Gem::Version
69
+ hash: 3
70
+ segments:
71
+ - 0
56
72
  version: "0"
57
- version:
58
73
  required_rubygems_version: !ruby/object:Gem::Requirement
74
+ none: false
59
75
  requirements:
60
76
  - - ">="
61
77
  - !ruby/object:Gem::Version
78
+ hash: 3
79
+ segments:
80
+ - 0
62
81
  version: "0"
63
- version:
64
82
  requirements: []
65
83
 
66
84
  rubyforge_project:
67
- rubygems_version: 1.3.5
85
+ rubygems_version: 1.4.2
68
86
  signing_key:
69
87
  specification_version: 3
70
88
  summary: NuWav is a pure ruby audio WAV file parser and writer.