mirror of
https://github.com/MrPatben8/konduktor.git
synced 2026-11-27 10:22:51 +01:00
Fixed looping issues and tied it to hotcue system
This commit is contained in:
1 parent
9dc020140a
commit
fdcae5e0f5
6 files changed
+119
-37
No files matched your search
+8
-2
@@ -218,8 +218,14 @@ export const api = {
|
||||
audioUrl: (trackId: string) => `/api/tracks/audio?track_id=${encodeURIComponent(trackId)}`,
|
||||
trackCues: (trackId: string) =>
|
||||
getJSON<TrackCues>(`/api/tracks/cues?track_id=${encodeURIComponent(trackId)}`),
|
||||
createHotcue: (trackId: string, slot: number, start: number, type: number) =>
|
||||
send<TrackCues>('POST', '/api/tracks/hotcue', { track_id: trackId, slot, start, type }),
|
||||
createHotcue: (trackId: string, slot: number, start: number, type: number, length = 0) =>
|
||||
send<TrackCues>('POST', '/api/tracks/hotcue', {
|
||||
track_id: trackId,
|
||||
slot,
|
||||
start,
|
||||
type,
|
||||
length,
|
||||
}),
|
||||
setHotcueType: (trackId: string, slot: number, type: number) =>
|
||||
send<TrackCues>('PATCH', '/api/tracks/hotcue', { track_id: trackId, slot, type }),
|
||||
deleteHotcue: (trackId: string, slot: number) =>
|
||||
|
||||
Reference in new issue
Block a user