shipping this slop

This commit is contained in:
Maze Winther
2026-01-20 22:14:49 +01:00
parent 7117f17ece
commit 6e4069b42f
97 changed files with 3357 additions and 1858 deletions
+12 -6
View File
@@ -175,9 +175,9 @@ export function buildUploadAudioElement({
name: string;
duration: number;
startTime: number;
buffer: AudioBuffer;
buffer?: AudioBuffer;
}): CreateUploadAudioElement {
return {
const element: CreateUploadAudioElement = {
type: "audio",
sourceType: "upload",
mediaId,
@@ -188,8 +188,11 @@ export function buildUploadAudioElement({
trimEnd: 0,
volume: 1,
muted: false,
buffer,
};
if (buffer) {
element.buffer = buffer;
}
return element;
}
export function buildLibraryAudioElement({
@@ -203,9 +206,9 @@ export function buildLibraryAudioElement({
name: string;
duration: number;
startTime: number;
buffer: AudioBuffer;
buffer?: AudioBuffer;
}): CreateLibraryAudioElement {
return {
const element: CreateLibraryAudioElement = {
type: "audio",
sourceType: "library",
sourceUrl,
@@ -216,6 +219,9 @@ export function buildLibraryAudioElement({
trimEnd: 0,
volume: 1,
muted: false,
buffer,
};
if (buffer) {
element.buffer = buffer;
}
return element;
}