@lox-audioserver/node-airplay-sender 0.4.8 → 0.4.9
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/dist/esm/index.js +9 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +9 -0
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -116,6 +116,15 @@ class LoxAirplaySender extends node_events_1.EventEmitter {
|
|
|
116
116
|
return;
|
|
117
117
|
this.airtunes.write(chunk);
|
|
118
118
|
}
|
|
119
|
+
/**
|
|
120
|
+
* Clear the internal circular buffer without tearing down the RTSP session.
|
|
121
|
+
* Use on track switches to drop buffered PCM in place of a full restart.
|
|
122
|
+
*/
|
|
123
|
+
reset() {
|
|
124
|
+
if (!this.airtunes)
|
|
125
|
+
return;
|
|
126
|
+
this.airtunes.reset();
|
|
127
|
+
}
|
|
119
128
|
/**
|
|
120
129
|
* Pipe a readable stream into the sender; auto-stops on end/error.
|
|
121
130
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -78,6 +78,11 @@ export declare class LoxAirplaySender extends EventEmitter {
|
|
|
78
78
|
* Push raw PCM or ALAC frames into the stream.
|
|
79
79
|
*/
|
|
80
80
|
sendPcm(chunk: Buffer): void;
|
|
81
|
+
/**
|
|
82
|
+
* Clear the internal circular buffer without tearing down the RTSP session.
|
|
83
|
+
* Use on track switches to drop buffered PCM in place of a full restart.
|
|
84
|
+
*/
|
|
85
|
+
reset(): void;
|
|
81
86
|
/**
|
|
82
87
|
* Pipe a readable stream into the sender; auto-stops on end/error.
|
|
83
88
|
*/
|
package/dist/index.js
CHANGED
|
@@ -116,6 +116,15 @@ class LoxAirplaySender extends node_events_1.EventEmitter {
|
|
|
116
116
|
return;
|
|
117
117
|
this.airtunes.write(chunk);
|
|
118
118
|
}
|
|
119
|
+
/**
|
|
120
|
+
* Clear the internal circular buffer without tearing down the RTSP session.
|
|
121
|
+
* Use on track switches to drop buffered PCM in place of a full restart.
|
|
122
|
+
*/
|
|
123
|
+
reset() {
|
|
124
|
+
if (!this.airtunes)
|
|
125
|
+
return;
|
|
126
|
+
this.airtunes.reset();
|
|
127
|
+
}
|
|
119
128
|
/**
|
|
120
129
|
* Pipe a readable stream into the sender; auto-stops on end/error.
|
|
121
130
|
*/
|
package/package.json
CHANGED