sndfile 0.1.3 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +10 -0
- data/README.md +8 -0
- data/Rakefile +3 -0
- data/lib/sndfile/enums.rb +5 -5
- data/lib/sndfile/file.rb +1 -1
- data/lib/sndfile/version.rb +1 -1
- data/sndfile.gemspec +1 -0
- data/spec/spec_helper.rb +1 -1
- metadata +19 -2
data/.travis.yml
ADDED
data/README.md
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
Libsndfile for Ruby
|
2
2
|
-------------
|
3
|
+
[![Build Status](https://travis-ci.org/ronen/sndfile.png)](https://travis-ci.org/ronen/sndfile)
|
4
|
+
[![Dependency Status](https://gemnasium.com/ronen/sndfile.png)](https://gemnasium.com/ronen/sndfile)
|
3
5
|
|
4
6
|
*sndfile* provides a fast and easy way to read, process, and write audio
|
5
7
|
file data. It wraps the [libsndfile](http://www.mega-nerd.com/libsndfile/)
|
@@ -40,12 +42,18 @@ Here's a simple example, that reads an arbitrary source file and produces a WAV
|
|
40
42
|
|
41
43
|
See the [RDOC](http://rubydoc.info/gems/sndfile) for more info.
|
42
44
|
|
45
|
+
Compatibility
|
46
|
+
=============
|
47
|
+
|
48
|
+
Currently works with ruby 1.8.7 and 1.9.3
|
49
|
+
|
43
50
|
|
44
51
|
History
|
45
52
|
=======
|
46
53
|
|
47
54
|
Release notes:
|
48
55
|
|
56
|
+
* 0.2.0 - support ruby 1.8.7. thanks to [youpy](https://github.com/youpy)
|
49
57
|
* 0.1.3 - Back to ruby-gsl-ng: memory leaks fixed
|
50
58
|
* 0.1.2 - Use ruby-gsl-ngx to avoid memory leaks
|
51
59
|
* 0.1.1 - Clean up vestigial includes in integration test
|
data/Rakefile
CHANGED
data/lib/sndfile/enums.rb
CHANGED
@@ -8,7 +8,7 @@ module Sndfile # :nodoc: all
|
|
8
8
|
:SF_ERR_UNRECOGNISED_FORMAT, 1,
|
9
9
|
:SF_ERR_SYSTEM, 2,
|
10
10
|
:SF_ERR_MALFORMED_FILE, 3,
|
11
|
-
:SF_ERR_UNSUPPORTED_ENCODING, 4
|
11
|
+
:SF_ERR_UNSUPPORTED_ENCODING, 4
|
12
12
|
)
|
13
13
|
|
14
14
|
|
@@ -16,7 +16,7 @@ module Sndfile # :nodoc: all
|
|
16
16
|
FileMode = enum(
|
17
17
|
:READ, 0x10,
|
18
18
|
:WRITE, 0x20,
|
19
|
-
:RDWR, 0x30
|
19
|
+
:RDWR, 0x30
|
20
20
|
)
|
21
21
|
|
22
22
|
# Major formats.
|
@@ -46,7 +46,7 @@ module Sndfile # :nodoc: all
|
|
46
46
|
:WVE, 0x190000, # Psion WVE format
|
47
47
|
:OGG, 0x200000, # Xiph OGG container
|
48
48
|
:MPC2K, 0x210000, # Akai MPC 2000 sampler
|
49
|
-
:RF64, 0x220000
|
49
|
+
:RF64, 0x220000 # RF64 WAV file
|
50
50
|
)
|
51
51
|
|
52
52
|
# Subtypes from here on.
|
@@ -82,7 +82,7 @@ module Sndfile # :nodoc: all
|
|
82
82
|
:DPCM_8, 0x0050, # 8 bit differential PCM (XI only)
|
83
83
|
:DPCM_16, 0x0051, # 16 bit differential PCM (XI only)
|
84
84
|
|
85
|
-
:VORBIS, 0x0060
|
85
|
+
:VORBIS, 0x0060 # Xiph Vorbis encoding.
|
86
86
|
)
|
87
87
|
|
88
88
|
# Endian-ness options.
|
@@ -91,7 +91,7 @@ module Sndfile # :nodoc: all
|
|
91
91
|
:FILE, 0x00000000, # Default file endian-ness.
|
92
92
|
:LITTLE, 0x10000000, # Force little endian-ness.
|
93
93
|
:BIG, 0x20000000, # Force big endian-ness.
|
94
|
-
:CPU, 0x30000000
|
94
|
+
:CPU, 0x30000000 # Force CPU endian-ness.
|
95
95
|
)
|
96
96
|
|
97
97
|
# Command numbers for sf_command
|
data/lib/sndfile/file.rb
CHANGED
data/lib/sndfile/version.rb
CHANGED
data/sndfile.gemspec
CHANGED
@@ -20,6 +20,7 @@ Gem::Specification.new do |gem|
|
|
20
20
|
gem.add_dependency("hash_keyword_args")
|
21
21
|
|
22
22
|
gem.add_development_dependency 'rake'
|
23
|
+
gem.add_development_dependency 'rdoc'
|
23
24
|
gem.add_development_dependency 'rspec'
|
24
25
|
gem.add_development_dependency 'simplecov'
|
25
26
|
gem.add_development_dependency 'simplecov-gem-adapter'
|
data/spec/spec_helper.rb
CHANGED
@@ -18,7 +18,7 @@ end
|
|
18
18
|
INPUTS_DIR = Pathname.new(__FILE__) + "../inputs"
|
19
19
|
REFS_DIR = Pathname.new(__FILE__) + "../refs"
|
20
20
|
OUTPUTS_DIR = Pathname.new(__FILE__) + "../outputs"
|
21
|
-
Dir.mkdir(OUTPUTS_DIR) unless
|
21
|
+
Dir.mkdir(OUTPUTS_DIR) unless File.directory? OUTPUTS_DIR
|
22
22
|
|
23
23
|
def in_path(name)
|
24
24
|
INPUTS_DIR + name
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sndfile
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-01-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: ffi
|
@@ -75,6 +75,22 @@ dependencies:
|
|
75
75
|
- - ! '>='
|
76
76
|
- !ruby/object:Gem::Version
|
77
77
|
version: '0'
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: rdoc
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - ! '>='
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '0'
|
86
|
+
type: :development
|
87
|
+
prerelease: false
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ! '>='
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0'
|
78
94
|
- !ruby/object:Gem::Dependency
|
79
95
|
name: rspec
|
80
96
|
requirement: !ruby/object:Gem::Requirement
|
@@ -132,6 +148,7 @@ extensions: []
|
|
132
148
|
extra_rdoc_files: []
|
133
149
|
files:
|
134
150
|
- .gitignore
|
151
|
+
- .travis.yml
|
135
152
|
- Gemfile
|
136
153
|
- README.md
|
137
154
|
- Rakefile
|