ruby-alsa 0.0.5 → 0.7
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.
- data/Manifest.txt +18 -0
- data/debian/changelog +11 -0
- data/debian/compat +1 -0
- data/debian/control +18 -0
- data/debian/rules +15 -0
- data/lib/alsa.rb +3 -1
- data/lib/alsa/ffi_ext.rb +35 -0
- data/lib/alsa/native.rb +5 -0
- data/lib/alsa/pcm/capture.rb +39 -3
- data/lib/alsa/pcm/hw_parameters.rb +89 -0
- data/lib/alsa/pcm/native.rb +23 -3
- data/lib/alsa/pcm/playback.rb +50 -3
- data/lib/alsa/pcm/stream.rb +43 -1
- data/lib/alsa/pcm/sw_parameters.rb +53 -0
- data/lib/alsa/sine.rb +21 -0
- data/log/test.log +217 -0
- data/refs/alsa_player +0 -0
- data/refs/alsa_player.c +80 -0
- data/refs/alsa_player.rb +85 -0
- data/refs/alsa_player_async +0 -0
- data/refs/alsa_player_async.c +113 -0
- data/refs/alsa_player_async.rb +98 -0
- data/refs/alsa_recorder.rb +85 -0
- data/refs/alsa_recorder_async.rb +98 -0
- data/refs/pcm_wrap.rb +552 -0
- data/ruby-alsa.gemspec +8 -8
- data/script/play +9 -2
- data/script/record +15 -4
- data/setup.rb +1585 -0
- data/spec/alsa/pcm/native_spec.rb +2 -2
- data/spec/alsa/pcm/stream_spec.rb +4 -4
- data/tasks/debian.rake +19 -0
- metadata +35 -7
@@ -2,8 +2,8 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
describe ALSA::PCM::Native do
|
4
4
|
|
5
|
-
it "should provide the
|
6
|
-
ALSA::PCM::Native::
|
5
|
+
it "should provide the Stream::CAPTURE constant" do
|
6
|
+
ALSA::PCM::Native::Stream::CAPTURE.should == 1
|
7
7
|
end
|
8
8
|
|
9
9
|
end
|
@@ -4,12 +4,12 @@ describe ALSA::PCM::Stream do
|
|
4
4
|
|
5
5
|
describe "native_constant" do
|
6
6
|
|
7
|
-
it "should be ALSA::PCM::Native::
|
8
|
-
ALSA::PCM::Capture.new.native_constant.should == ALSA::PCM::Native::
|
7
|
+
it "should be ALSA::PCM::Native::Stream::CAPTURE for Capture" do
|
8
|
+
ALSA::PCM::Capture.new.native_constant.should == ALSA::PCM::Native::Stream::CAPTURE
|
9
9
|
end
|
10
10
|
|
11
|
-
it "should be ALSA::PCM::Native::
|
12
|
-
ALSA::PCM::Playback.new.native_constant.should == ALSA::PCM::Native::
|
11
|
+
it "should be ALSA::PCM::Native::Stream::PLAYBACK for Playback" do
|
12
|
+
ALSA::PCM::Playback.new.native_constant.should == ALSA::PCM::Native::Stream::PLAYBACK
|
13
13
|
end
|
14
14
|
|
15
15
|
end
|
data/tasks/debian.rake
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
begin
|
2
|
+
require 'debian/build'
|
3
|
+
|
4
|
+
include Debian::Build
|
5
|
+
require 'debian/build/config'
|
6
|
+
|
7
|
+
namespace "package" do
|
8
|
+
Package.new(:"libalsa-ruby") do |t|
|
9
|
+
t.version = '0.7'
|
10
|
+
t.debian_increment = 1
|
11
|
+
|
12
|
+
t.source_provider = GitExportProvider.new
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
require 'debian/build/tasks'
|
17
|
+
rescue Exception => e
|
18
|
+
puts "WARNING: Can't load debian package tasks (#{e.to_s})"
|
19
|
+
end
|
metadata
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-alsa
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
+
hash: 5
|
4
5
|
prerelease: false
|
5
6
|
segments:
|
6
7
|
- 0
|
7
|
-
-
|
8
|
-
|
9
|
-
version: 0.0.5
|
8
|
+
- 7
|
9
|
+
version: "0.7"
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Alban Peignier
|
@@ -14,16 +14,18 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-
|
17
|
+
date: 2010-10-14 00:00:00 +02:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: ffi
|
22
22
|
prerelease: false
|
23
23
|
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
+
none: false
|
24
25
|
requirements:
|
25
26
|
- - ">="
|
26
27
|
- !ruby/object:Gem::Version
|
28
|
+
hash: 1
|
27
29
|
segments:
|
28
30
|
- 0
|
29
31
|
- 6
|
@@ -35,9 +37,11 @@ dependencies:
|
|
35
37
|
name: rubyforge
|
36
38
|
prerelease: false
|
37
39
|
requirement: &id002 !ruby/object:Gem::Requirement
|
40
|
+
none: false
|
38
41
|
requirements:
|
39
42
|
- - ">="
|
40
43
|
- !ruby/object:Gem::Version
|
44
|
+
hash: 7
|
41
45
|
segments:
|
42
46
|
- 2
|
43
47
|
- 0
|
@@ -49,14 +53,16 @@ dependencies:
|
|
49
53
|
name: hoe
|
50
54
|
prerelease: false
|
51
55
|
requirement: &id003 !ruby/object:Gem::Requirement
|
56
|
+
none: false
|
52
57
|
requirements:
|
53
58
|
- - ">="
|
54
59
|
- !ruby/object:Gem::Version
|
60
|
+
hash: 19
|
55
61
|
segments:
|
56
62
|
- 2
|
57
63
|
- 6
|
58
|
-
-
|
59
|
-
version: 2.6.
|
64
|
+
- 2
|
65
|
+
version: 2.6.2
|
60
66
|
type: :development
|
61
67
|
version_requirements: *id003
|
62
68
|
description: FIX (describe your package)
|
@@ -78,7 +84,12 @@ files:
|
|
78
84
|
- Manifest.txt
|
79
85
|
- README.rdoc
|
80
86
|
- Rakefile
|
87
|
+
- debian/changelog
|
88
|
+
- debian/compat
|
89
|
+
- debian/control
|
90
|
+
- debian/rules
|
81
91
|
- lib/alsa.rb
|
92
|
+
- lib/alsa/ffi_ext.rb
|
82
93
|
- lib/alsa/logger.rb
|
83
94
|
- lib/alsa/native.rb
|
84
95
|
- lib/alsa/pcm/capture.rb
|
@@ -86,13 +97,25 @@ files:
|
|
86
97
|
- lib/alsa/pcm/native.rb
|
87
98
|
- lib/alsa/pcm/playback.rb
|
88
99
|
- lib/alsa/pcm/stream.rb
|
100
|
+
- lib/alsa/pcm/sw_parameters.rb
|
101
|
+
- lib/alsa/sine.rb
|
89
102
|
- log/test.log
|
103
|
+
- refs/alsa_player
|
104
|
+
- refs/alsa_player.c
|
105
|
+
- refs/alsa_player.rb
|
106
|
+
- refs/alsa_player_async
|
107
|
+
- refs/alsa_player_async.c
|
108
|
+
- refs/alsa_player_async.rb
|
109
|
+
- refs/alsa_recorder.rb
|
110
|
+
- refs/alsa_recorder_async.rb
|
111
|
+
- refs/pcm_wrap.rb
|
90
112
|
- ruby-alsa.gemspec
|
91
113
|
- script/console
|
92
114
|
- script/destroy
|
93
115
|
- script/generate
|
94
116
|
- script/play
|
95
117
|
- script/record
|
118
|
+
- setup.rb
|
96
119
|
- spec.html
|
97
120
|
- spec/alsa/logger_spec.rb
|
98
121
|
- spec/alsa/native_spec.rb
|
@@ -106,6 +129,7 @@ files:
|
|
106
129
|
- spec/spec_helper.rb
|
107
130
|
- spec/support/logger.rb
|
108
131
|
- tasks/buildbot.rake
|
132
|
+
- tasks/debian.rake
|
109
133
|
- tasks/rspec.rake
|
110
134
|
has_rdoc: true
|
111
135
|
homepage: http://projects.tryphon.eu/ruby-alsa
|
@@ -118,23 +142,27 @@ rdoc_options:
|
|
118
142
|
require_paths:
|
119
143
|
- lib
|
120
144
|
required_ruby_version: !ruby/object:Gem::Requirement
|
145
|
+
none: false
|
121
146
|
requirements:
|
122
147
|
- - ">="
|
123
148
|
- !ruby/object:Gem::Version
|
149
|
+
hash: 3
|
124
150
|
segments:
|
125
151
|
- 0
|
126
152
|
version: "0"
|
127
153
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
154
|
+
none: false
|
128
155
|
requirements:
|
129
156
|
- - ">="
|
130
157
|
- !ruby/object:Gem::Version
|
158
|
+
hash: 3
|
131
159
|
segments:
|
132
160
|
- 0
|
133
161
|
version: "0"
|
134
162
|
requirements: []
|
135
163
|
|
136
164
|
rubyforge_project: ruby-alsa
|
137
|
-
rubygems_version: 1.3.
|
165
|
+
rubygems_version: 1.3.7
|
138
166
|
signing_key:
|
139
167
|
specification_version: 3
|
140
168
|
summary: FIX (describe your package)
|