smplr 0.10.1 → 0.10.3
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/index.js +2 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -459,7 +459,6 @@ var SamplePlayer = class {
|
|
|
459
459
|
]);
|
|
460
460
|
source.onended = () => {
|
|
461
461
|
var _a2;
|
|
462
|
-
console.log('">>>> END', sample.onEnded);
|
|
463
462
|
cleanup();
|
|
464
463
|
(_a2 = sample.onEnded) == null ? void 0 : _a2.call(sample, sample);
|
|
465
464
|
};
|
|
@@ -511,7 +510,7 @@ var DefaultPlayer = class {
|
|
|
511
510
|
this.context = context;
|
|
512
511
|
const channel = new Channel(context, options);
|
|
513
512
|
this.player = new QueuedPlayer(
|
|
514
|
-
new SamplePlayer(
|
|
513
|
+
new SamplePlayer(channel.input, options),
|
|
515
514
|
options
|
|
516
515
|
);
|
|
517
516
|
this.output = channel;
|
|
@@ -520,7 +519,6 @@ var DefaultPlayer = class {
|
|
|
520
519
|
return this.player.buffers;
|
|
521
520
|
}
|
|
522
521
|
start(sample) {
|
|
523
|
-
console.log({ sample });
|
|
524
522
|
return this.player.start(sample);
|
|
525
523
|
}
|
|
526
524
|
stop(sample) {
|
|
@@ -1119,7 +1117,7 @@ var RegionPlayer = class {
|
|
|
1119
1117
|
const channel = new Channel(context, options);
|
|
1120
1118
|
this.group = createEmptyRegionGroup();
|
|
1121
1119
|
this.player = new QueuedPlayer(
|
|
1122
|
-
new SamplePlayer(
|
|
1120
|
+
new SamplePlayer(channel.input, options),
|
|
1123
1121
|
options
|
|
1124
1122
|
);
|
|
1125
1123
|
this.output = channel;
|