Feat: save waveform as file (#118)

* package rpm

* cache waveform data as file in library

* clear waveform data in db

* fix some css
This commit is contained in:
an-lee
2024-01-15 16:57:44 +08:00
committed by GitHub
parent 187038c42e
commit b545ea2362
25 changed files with 133 additions and 48 deletions

View File

@@ -205,4 +205,8 @@ type EnjoyAppType = {
process: (params: any) => Promise<void>;
update: (id: string, params: any) => Promise<void>;
};
waveforms: {
find: (id: string) => Promise<WaveFormDataType>;
save: (id: string, data: WaveFormDataType) => Promise<void>;
};
};

6
enjoy/src/types/waveform.d.ts vendored Normal file
View File

@@ -0,0 +1,6 @@
type WaveFormDataType = {
peaks: number[];
sampleRate: number;
duration: number;
frequencies: number[];
};