hornetseye-alsa 0.3.3 → 0.3.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README.md +41 -1
  2. data/Rakefile +1 -1
  3. metadata +2 -2
data/README.md CHANGED
@@ -1,4 +1,44 @@
1
1
  hornetseye-alsa
2
- ======
2
+ ===============
3
+
4
+ **Author**: Jan Wedekind
5
+ **Copyright**: 2010
6
+ **License**: GPL
7
+
8
+ Synopsis
9
+ --------
10
+
3
11
  This Ruby extension provides an interface for playing audio data using ALSA.
4
12
 
13
+ Installation
14
+ ------------
15
+
16
+ To install the Hornetseye ALSA bindings, use the following command:
17
+
18
+ $ sudo gem install hornetseye-alsa
19
+
20
+ You can install from source as follows:
21
+
22
+ $ rake
23
+ $ sudo rake install
24
+
25
+ Usage
26
+ -----
27
+
28
+ Simply run Interactive Ruby:
29
+
30
+ $ irb
31
+
32
+ You can load and use ALSA as shown below. This example will open microphone and
33
+ speakers and then write the input of the microphone to the speakers.
34
+
35
+ require 'rubygems'
36
+ require 'hornetseye_alsa'
37
+ include Hornetseye
38
+ microphone = AlsaInput.new 'default:0' # or 'default:1' for USB microphone
39
+ speaker = AlsaOutput.new 'default:0', microphone.rate, microphone.channels
40
+ while true
41
+ frame = microphone.read 1024
42
+ speaker.write frame
43
+ end
44
+
data/Rakefile CHANGED
@@ -7,7 +7,7 @@ require 'rake/loaders/makefile'
7
7
  require 'rbconfig'
8
8
 
9
9
  PKG_NAME = 'hornetseye-alsa'
10
- PKG_VERSION = '0.3.3'
10
+ PKG_VERSION = '0.3.4'
11
11
  CFG = RbConfig::CONFIG
12
12
  CXX = ENV[ 'CXX' ] || 'g++'
13
13
  RB_FILES = FileList[ 'lib/**/*.rb' ]
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 3
9
- version: 0.3.3
8
+ - 4
9
+ version: 0.3.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - Jan Wedekind