nixamp 0.7.31 → 0.7.32
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/audio.js +13 -9
- package/package.json +1 -1
- package/src/audio.ts +13 -9
- package/web/dist/sw.js +1 -1
package/dist/audio.js
CHANGED
|
@@ -160,16 +160,20 @@ export class Stream {
|
|
|
160
160
|
this.decoder = spawn(ff, [
|
|
161
161
|
...ffRest,
|
|
162
162
|
"-hide_banner", "-loglevel", "error",
|
|
163
|
-
//
|
|
163
|
+
// Always paced to real time, because playing is a real-time act.
|
|
164
164
|
//
|
|
165
|
-
//
|
|
166
|
-
//
|
|
167
|
-
//
|
|
168
|
-
//
|
|
169
|
-
//
|
|
170
|
-
//
|
|
171
|
-
//
|
|
172
|
-
|
|
165
|
+
// Decoding is meant to keep pace with listening, and `position` is what
|
|
166
|
+
// a watch party synchronises to. Left unpaced it runs at whatever speed
|
|
167
|
+
// the disk manages -- a film reached its end in a couple of minutes, and
|
|
168
|
+
// every viewer was handed a position the server had already raced past.
|
|
169
|
+
//
|
|
170
|
+
// This was first written as "pace only when there is no player", which
|
|
171
|
+
// looked right and was not: a server has an ffplay binary sitting there
|
|
172
|
+
// that cannot open an audio device, so it exits at once and drains
|
|
173
|
+
// nothing, while its mere existence said pacing was somebody else's job.
|
|
174
|
+
// Whether a machine can make a sound is not a thing to infer from a file
|
|
175
|
+
// being on disk. Measured with that condition in place: still 13.8x.
|
|
176
|
+
"-re",
|
|
173
177
|
...(from > 0 ? ["-ss", String(from)] : []),
|
|
174
178
|
"-i", track.path,
|
|
175
179
|
"-f", "f32le", "-ac", String(CHANNELS), "-ar", String(RATE), "-",
|
package/package.json
CHANGED
package/src/audio.ts
CHANGED
|
@@ -186,16 +186,20 @@ export class Stream {
|
|
|
186
186
|
this.decoder = spawn(ff, [
|
|
187
187
|
...ffRest,
|
|
188
188
|
"-hide_banner", "-loglevel", "error",
|
|
189
|
-
//
|
|
189
|
+
// Always paced to real time, because playing is a real-time act.
|
|
190
190
|
//
|
|
191
|
-
//
|
|
192
|
-
//
|
|
193
|
-
//
|
|
194
|
-
//
|
|
195
|
-
//
|
|
196
|
-
//
|
|
197
|
-
//
|
|
198
|
-
|
|
191
|
+
// Decoding is meant to keep pace with listening, and `position` is what
|
|
192
|
+
// a watch party synchronises to. Left unpaced it runs at whatever speed
|
|
193
|
+
// the disk manages -- a film reached its end in a couple of minutes, and
|
|
194
|
+
// every viewer was handed a position the server had already raced past.
|
|
195
|
+
//
|
|
196
|
+
// This was first written as "pace only when there is no player", which
|
|
197
|
+
// looked right and was not: a server has an ffplay binary sitting there
|
|
198
|
+
// that cannot open an audio device, so it exits at once and drains
|
|
199
|
+
// nothing, while its mere existence said pacing was somebody else's job.
|
|
200
|
+
// Whether a machine can make a sound is not a thing to infer from a file
|
|
201
|
+
// being on disk. Measured with that condition in place: still 13.8x.
|
|
202
|
+
"-re",
|
|
199
203
|
...(from > 0 ? ["-ss", String(from)] : []),
|
|
200
204
|
"-i", track.path,
|
|
201
205
|
"-f", "f32le", "-ac", String(CHANNELS), "-ar", String(RATE), "-",
|
package/web/dist/sw.js
CHANGED