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
37
38
39
40
41
|
/**
* @file aubridge.h Audio bridge -- internal interface
*
* Copyright (C) 2010 Creytiv.com
*/
struct device;
struct ausrc_st {
const struct ausrc *as; /* inheritance */
struct device *dev;
struct ausrc_prm prm;
ausrc_read_h *rh;
void *arg;
};
struct auplay_st {
const struct auplay *ap; /* inheritance */
struct device *dev;
struct auplay_prm prm;
auplay_write_h *wh;
void *arg;
};
extern struct hash *ht_device;
int play_alloc(struct auplay_st **stp, const struct auplay *ap,
struct auplay_prm *prm, const char *device,
auplay_write_h *wh, void *arg);
int src_alloc(struct ausrc_st **stp, const struct ausrc *as,
struct media_ctx **ctx,
struct ausrc_prm *prm, const char *device,
ausrc_read_h *rh, ausrc_error_h *errh, void *arg);
int device_connect(struct device **devp, const char *device,
struct auplay_st *auplay, struct ausrc_st *ausrc);
void device_stop(struct device *dev);
|