tone-stream 1.12.0 → 1.13.0
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.
- package/index.js +3 -0
- package/package.json +4 -3
package/index.js
CHANGED
|
@@ -75,12 +75,15 @@ class ToneStream extends Readable {
|
|
|
75
75
|
var buf_idx = 0;
|
|
76
76
|
|
|
77
77
|
if (!specs) {
|
|
78
|
+
/*
|
|
78
79
|
for (var j = 0; j < numSamples * this.channels; j++) {
|
|
79
80
|
let offset = j * sampleSize * this.channels;
|
|
80
81
|
setter(0, offset);
|
|
81
82
|
}
|
|
82
83
|
|
|
83
84
|
this.push(buf);
|
|
85
|
+
*/
|
|
86
|
+
this.push(null)
|
|
84
87
|
return;
|
|
85
88
|
}
|
|
86
89
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tone-stream",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.13.0",
|
|
4
4
|
"description": "A simple audio tone stream library",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": {
|
|
@@ -21,10 +21,11 @@
|
|
|
21
21
|
"author": "MayamaTakeshi",
|
|
22
22
|
"license": "MIT",
|
|
23
23
|
"devDependencies": {
|
|
24
|
+
"@mayama/audio-utils": "^1.2.0",
|
|
25
|
+
"dtmf-detection-stream": "^1.16.2",
|
|
24
26
|
"lodash": "^4.17.21",
|
|
25
27
|
"speaker": "^0.5.1",
|
|
26
|
-
"wav": "^1.0.2"
|
|
27
|
-
"dtmf-detection-stream": "^1.10.0"
|
|
28
|
+
"wav": "^1.0.2"
|
|
28
29
|
},
|
|
29
30
|
"dependencies": {
|
|
30
31
|
"morse-node": "^0.1.1",
|