version 1.6, 2009/05/16 12:20:31 |
version 1.7, 2009/07/25 08:44:27 |
|
|
#include "aparams.h" |
#include "aparams.h" |
#include "amsg.h" |
#include "amsg.h" |
|
|
|
struct opt; |
|
|
struct sock { |
struct sock { |
struct pipe pipe; |
struct pipe pipe; |
/* |
/* |
|
|
#define SOCK_INIT 1 /* parameter negotiation */ |
#define SOCK_INIT 1 /* parameter negotiation */ |
#define SOCK_START 2 /* filling play buffers */ |
#define SOCK_START 2 /* filling play buffers */ |
#define SOCK_RUN 3 /* attached to the mix / sub */ |
#define SOCK_RUN 3 /* attached to the mix / sub */ |
|
#define SOCK_MIDI 4 /* raw byte stream (midi) */ |
unsigned pstate; /* one of the above */ |
unsigned pstate; /* one of the above */ |
unsigned mode; /* a set of AMSG_PLAY, AMSG_REC */ |
unsigned mode; /* a set of AMSG_PLAY, AMSG_REC */ |
struct aparams rpar; /* read (ie play) parameters */ |
struct aparams rpar; /* read (ie play) parameters */ |
|
|
unsigned round; /* block size */ |
unsigned round; /* block size */ |
unsigned xrun; /* one of AMSG_IGNORE, ... */ |
unsigned xrun; /* one of AMSG_IGNORE, ... */ |
int vol; /* requested volume */ |
int vol; /* requested volume */ |
int maxweight; /* max dynamic range */ |
struct opt *opt; /* "subdevice" definition */ |
struct aparams templ_rpar; /* template for rpar */ |
|
struct aparams templ_wpar; /* template for wpar */ |
|
}; |
}; |
|
|
struct sock *sock_new(struct fileops *, int fd, char *, |
struct sock *sock_new(struct fileops *, int fd); |
struct aparams *, struct aparams *, int); |
|
extern struct fileops sock_ops; |
extern struct fileops sock_ops; |
|
|
#endif /* !defined(SOCK_H) */ |
#endif /* !defined(SOCK_H) */ |