summaryrefslogtreecommitdiff
path: root/streamer.h
blob: 10071865d40a51ee1bf90b472fafe508953e0d49 (plain)
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
#ifndef __STREAMER_H
#define __STREAMER_H

int
streamer_init (void);

void
streamer_free (void);

int
streamer_read (char *bytes, int size);

void
streamer_reset (int full);

void
streamer_lock (void);

void
streamer_unlock (void);

// pstate indicates what to do with playback
// -1 means "don't do anything"
// otherwise "set state to this value"
void
streamer_set_nextsong (int song, int pstate);

#endif // __STREAMER_H