]> 4ch.mooo.com Git - 16.git/blob - src/lib/dl/ext/vorbtool/lyrics.h
cleaned up the repo from debugging watcom2 ^^
[16.git] / src / lib / dl / ext / vorbtool / lyrics.h
1 #ifndef __LYRICS_H
2 #define __LYRICS_H
3
4 #include <stddef.h>
5 #ifdef HAVE_KATE
6 #include <kate/kate.h>
7 #endif
8
9 typedef struct oe_lyrics_item {
10     char *text;
11     size_t len;
12     double t0;
13     double t1;
14 #ifdef HAVE_KATE
15     kate_motion *km;
16 #endif
17 } oe_lyrics_item;
18
19 typedef struct oe_lyrics {
20     size_t count;
21     oe_lyrics_item *lyrics;
22     int karaoke;
23 } oe_lyrics;
24
25 extern oe_lyrics *load_lyrics(const char *filename);
26 extern void free_lyrics(oe_lyrics *lyrics);
27 extern const oe_lyrics_item *get_lyrics(const oe_lyrics *lyrics, double t, size_t *idx);
28
29 #endif