hornetseye-alsa 0.3.4 → 0.3.5

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -8,16 +8,19 @@ hornetseye-alsa
8
8
  Synopsis
9
9
  --------
10
10
 
11
- This Ruby extension provides an interface for playing audio data using ALSA.
11
+ This Ruby extension provides an interface for playing audio data using the Advanced Linux Sound Architecture (ALSA).
12
12
 
13
13
  Installation
14
14
  ------------
15
+ *hornetseye-alsa* requires the ALSA library. If you are running Debian or (K)ubuntu, you can install it like this:
15
16
 
16
- To install the Hornetseye ALSA bindings, use the following command:
17
+ $ sudo aptitude install libasound2-dev
18
+
19
+ To install this Ruby extension, use the following command:
17
20
 
18
21
  $ sudo gem install hornetseye-alsa
19
22
 
20
- You can install from source as follows:
23
+ Alternatively you can build and install the Ruby extension from source as follows:
21
24
 
22
25
  $ rake
23
26
  $ sudo rake install
@@ -29,8 +32,7 @@ Simply run Interactive Ruby:
29
32
 
30
33
  $ irb
31
34
 
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.
35
+ You can load and use ALSA as shown below. This example will open microphone and speakers and then write the input of the microphone to the speakers.
34
36
 
35
37
  require 'rubygems'
36
38
  require 'hornetseye_alsa'
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.4'
10
+ PKG_VERSION = '0.3.5'
11
11
  CFG = RbConfig::CONFIG
12
12
  CXX = ENV[ 'CXX' ] || 'g++'
13
13
  RB_FILES = FileList[ 'lib/**/*.rb' ]
@@ -45,8 +45,8 @@ module Hornetseye
45
45
  # @param [String] pcm_name Name of the PCM device
46
46
  # @param [Integer] rate Desired sampling rate.
47
47
  # @param [Integer] channels Number of channels (1=mono, 2=stereo).
48
- # @param [Integer] periods Number of audio frames of the output buffer.
49
- # @param [Integer] frames Size of the audio frames of the output buffer.
48
+ # @param [Integer] periods Number of audio frames of the input buffer.
49
+ # @param [Integer] frames Size of the audio frames of the input buffer.
50
50
  # @return [AlsaInput] An object for accessing the microphone.
51
51
  #
52
52
  # @see #rate
@@ -69,7 +69,7 @@ module Hornetseye
69
69
  # Audio data is read from the input buffer.
70
70
  #
71
71
  # A blocking read operation is used. I.e. the program is blocked until there is
72
- # sufficient data available in the audio output buffer.
72
+ # sufficient data available in the audio input buffer.
73
73
  #
74
74
  # @example Read 3 seconds of audio samples
75
75
  # require 'hornetseye_alsa'
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 4
9
- version: 0.3.4
8
+ - 5
9
+ version: 0.3.5
10
10
  platform: ruby
11
11
  authors:
12
12
  - Jan Wedekind
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-11-17 00:00:00 +00:00
17
+ date: 2010-11-18 00:00:00 +00:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency