nu_wav 0.4.4 → 0.4.5

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0eb34a9d5ee0da2891713061a841fe45bec17411
4
- data.tar.gz: d8c488aefd8a1410adc96fa0daf4e422ec1d429a
3
+ metadata.gz: 711f1ff9cf1e866c3a00c0be81d4f67aad7c02dc
4
+ data.tar.gz: e906d964674f1f2f1811cfe481ceeacbb33f4b90
5
5
  SHA512:
6
- metadata.gz: b6ec5f5c23c83cb99c2abec97e3a91e88ac4dc238a09e169ac655d04f12507d3d7149d20501cccf0b6461133d369c6cd4492c65dcd8e3208a88684f6cf41d63a
7
- data.tar.gz: 602f5ce39e235015f7305c8f0afb10ada32579cf55202299c8174107d0580a388c4ed0f6268b0c2cc002f0eac5b2f27c466335d6f7b21716cd0a8c709b7c3869
6
+ metadata.gz: d618ffb303ad737921f15bd2251621b438a4f3d5b513fbb3d2d6094f87233d35d30b9864423013955d0d4a73a6cf9f4099eb3855767122a65532ad414be6efa9
7
+ data.tar.gz: c270464f572ac25f788d774e59a889bdd437cc84e7dcd1611ccdffaa0b608bb2a35269f689267377b6e07180da9c32a6a93c1d076129e4224ccab1e2d049328e
@@ -324,6 +324,10 @@ module NuWav
324
324
  d = self.data
325
325
  NuWav::WaveFile.log "got data size = #{d.size} #{d[0,10]}"
326
326
  out = "data" + write_dword(d.size) + d
327
+ if d.size.odd?
328
+ NuWav::WaveFile.log "odd, adding a pad byte"
329
+ out += "\0"
330
+ end
327
331
  out
328
332
  end
329
333
  end
@@ -1,3 +1,3 @@
1
1
  module NuWav
2
- VERSION = "0.4.4"
2
+ VERSION = "0.4.5"
3
3
  end
@@ -54,8 +54,12 @@ module NuWav
54
54
  NuWav::WaveFile.log "seek done"
55
55
 
56
56
  if parsed_chunk_size.odd?
57
+ NuWav::WaveFile.log("parsed_chunk_size is ODD #{chunk_name}: #{parsed_chunk_size}")
57
58
  pad = f.read(1)
58
- f.seek(fpos + parsed_chunk_size) if (pad.nil? || pad.ord != 0)
59
+ if (pad.nil? || pad.ord != 0)
60
+ NuWav::WaveFile.log("NOT PADDED")
61
+ f.seek(fpos + parsed_chunk_size)
62
+ end
59
63
  end
60
64
 
61
65
  else
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nu_wav
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.4
4
+ version: 0.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kuklewicz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-07 00:00:00.000000000 Z
11
+ date: 2014-06-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby-mp3info