MCPcopy
hub / github.com/SPlayer-Dev/SPlayer / getAnalysis

Method getAnalysis

electron/main/database/LocalMusicDB.ts:128–133  ·  view source on GitHub ↗

获取音频分析结果

(path: string)

Source from the content-addressed store, hash-verified

126
127 /** 获取音频分析结果 */
128 public getAnalysis(path: string): { data: string; mtime: number; size: number } | undefined {
129 if (!this.db) return undefined;
130 return this.db.prepare("SELECT * FROM audio_analysis WHERE path = ?").get(path) as
131 | { data: string; mtime: number; size: number }
132 | undefined;
133 }
134
135 /** 保存音频分析结果 */
136 public saveAnalysis(path: string, data: string, mtime: number, size: number) {

Callers 1

initFileIpcFunction · 0.45

Calls 2

getMethod · 0.65
prepareMethod · 0.65

Tested by

no test coverage detected