aboutsummaryrefslogtreecommitdiffstats
path: root/vlc_input.h
blob: f2b78c62639c40a8d99f1f3e47c24c1183f9d8ae (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
29
30
31
32
#ifndef __VLC_INPUT_H_
#define __VLC_INPUT_H_

#  if defined(VLC_INPUT)

#include <stdint.h>
#include <vlc/vlc.h>


// A linked list structure for the incoming buffers
struct vlc_buffer {
    uint8_t                *buf;
    size_t                  size;
    struct vlc_buffer *next;
};

// Open the VLC input
int vlc_in_prepare(
        unsigned verbosity,
        unsigned int rate,
        const char* uri,
        unsigned channels,
        const char* icy_write_file);

// Read len audio bytes into buf
ssize_t vlc_in_read(void *buf, size_t len);

void vlc_in_write_icy(void);

#  endif // VLC_INPUT
#endif // __VLC_INPUT_H_