-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubtracks.h
36 lines (29 loc) · 859 Bytes
/
subtracks.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
* Created by patryk on 13.08.16.
*/
#ifndef VSAMIDISYNC_SUBTRACKS_H
#define VSAMIDISYNC_SUBTRACKS_H
#include <windows.h>
#define S_NAMELEN 21
typedef struct {
WCHAR name[S_NAMELEN + 1];
LONG start;
LONG stop;
} subtrack;
typedef struct {
CHAR length;
UCHAR alloc;
subtrack **tracks;
} subtracks_list;
void InitSubtracksList(subtracks_list *obj);
BOOL VSBExists(LPWSTR path);
BOOL LoadVSBFile(subtracks_list *obj, LPWSTR path);
BOOL SaveVSBFile(subtracks_list *obj, LPWSTR path);
void MakeChanges(void);
void AintNoChanges(void);
BOOLEAN AreThereAnyFuckingChanges(void);
BOOL AddSubtrack(subtracks_list *obj, LONG start, LONG stop, LPWSTR name);
BOOL RemoveSubtrack(subtracks_list *obj, UCHAR id);
BOOL SwapSubtracks(subtracks_list *obj, UCHAR from, UCHAR to);
void DestroySubtracksList(subtracks_list *obj);
#endif //VSAMIDISYNC_SUBTRACKS_H