audio_stream 1.2.0 → 1.2.1

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
  SHA256:
3
- metadata.gz: 5bcb3b9d97e49748ebdcca6bef4ef5288dfb0dd8a1211826ee529692928df52f
4
- data.tar.gz: c508e385ac5a131734f6b4493132b926329d2cea39aa4feed9da79e837889cef
3
+ metadata.gz: eaba574b0b75b16fe48a07159e6b77c29644d7e8ce08712104fbe469e00ffcd9
4
+ data.tar.gz: 8b8a654df8fa9cef8d2889fdf4655e8f537bdf86d7a59861f5d08036dfbfe697
5
5
  SHA512:
6
- metadata.gz: 78ac5a990115889d5a067bfdd3fa11273b57aacb6e8b90cf5c8e332af92c260a21a5d5ed3563c92c67ebe3b65deedd21884509eae7eb29a23c5117d2b553e13e
7
- data.tar.gz: 17f43c4fdbdd178b749ce873e4a933d23ada7b4b845c07c038c43cdceb6ba4be83ef455c47f20b18dadfce3693d4ae56ad346273eaffab7574210b2cc94a9f7e
6
+ metadata.gz: 2702247a2aa77b427b1f6f03330bca380221349d02dbd26b915fb50c65897d9ec373a05519de94866e191e6e1578253bfef11c4b4b0daf3299ab1119ea3f0cba
7
+ data.tar.gz: 5d4feabfe83d1b3616c60ae2a44ca05dbb5bff166c8078b87b27f6fa950c70fa41675328710dc2930c6c9f1eadef5742aa155f04367688a169741022e96c9bb9
@@ -47,6 +47,17 @@ module AudioStream
47
47
  input
48
48
  end
49
49
 
50
+ def process_mono(in0)
51
+ process_one(in0, @filter_bufs[0])
52
+ end
53
+
54
+ def process_stereo(inp)
55
+ [
56
+ process_one(inp[0], @filter_bufs[0]),
57
+ process_one(inp[1], @filter_bufs[1])
58
+ ]
59
+ end
60
+
50
61
  def process_one(in0, b)
51
62
  c = @filter_coef
52
63
  out0 = c.b0/c.a0 * in0 + c.b1/c.a0 * b.in1 + c.b2/c.a0 * b.in2 - c.a1/c.a0 * b.out1 - c.a2/c.a0 * b.out2
@@ -1,3 +1,3 @@
1
1
  module AudioStream
2
- VERSION = "1.2.0"
2
+ VERSION = "1.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: audio_stream
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yoshida Tetsuya