mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-27 21:48:27 +00:00
fix: lint
This commit is contained in:
parent
73d49f152a
commit
226cf356d6
@ -70,7 +70,7 @@ export const getSampleBuffer = async (hapValue, samples, resolveUrl) => {
|
|||||||
// creates playback ready AudioBufferSourceNode from hapValue
|
// creates playback ready AudioBufferSourceNode from hapValue
|
||||||
export const getSampleBufferSource = async (hapValue, samples, resolveUrl) => {
|
export const getSampleBufferSource = async (hapValue, samples, resolveUrl) => {
|
||||||
let { buffer, playbackRate } = await getSampleBuffer(hapValue, samples, resolveUrl);
|
let { buffer, playbackRate } = await getSampleBuffer(hapValue, samples, resolveUrl);
|
||||||
if (speed < 0) {
|
if (hapValue.speed < 0) {
|
||||||
// should this be cached?
|
// should this be cached?
|
||||||
buffer = reverseBuffer(buffer);
|
buffer = reverseBuffer(buffer);
|
||||||
}
|
}
|
||||||
@ -85,7 +85,7 @@ export const getSampleBufferSource = async (hapValue, samples, resolveUrl) => {
|
|||||||
// rather than the current playback rate, so even if the sound is playing at twice its normal speed,
|
// rather than the current playback rate, so even if the sound is playing at twice its normal speed,
|
||||||
// the midway point through a 10-second audio buffer is still 5."
|
// the midway point through a 10-second audio buffer is still 5."
|
||||||
const offset = begin * bufferSource.buffer.duration;
|
const offset = begin * bufferSource.buffer.duration;
|
||||||
// sound names starting with wt_ are looped automatically (wt = wavetable)
|
|
||||||
const loop = s.startsWith('wt_') ? 1 : hapValue.loop;
|
const loop = s.startsWith('wt_') ? 1 : hapValue.loop;
|
||||||
if (loop) {
|
if (loop) {
|
||||||
bufferSource.loop = true;
|
bufferSource.loop = true;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user