|
#define | NETWORK_COMPAT_HEADERS 1 |
|
#define | RSD_WARN(fmt, args...) |
|
#define | RSD_ERR(fmt, args...) |
|
#define | RSD_DEBUG(fmt, args...) |
|
#define | pollfd_fd(x) x.fd |
|
#define | net_socket(a, b, c) socket(a,b,c) |
|
#define | socketpoll(x, y, z) poll(x, y, z) |
|
#define | net_send(a, b, c, d) send(a,b,c,d) |
|
#define | net_connect(a, b, c) connect(a,b,c) |
|
#define | net_shutdown(a, b) shutdown(a,b) |
|
#define | net_socketclose(x) close(x) |
|
#define | net_recv(a, b, c, d) recv(a,b,c,d) |
|
#define | HEADER_SIZE 44 |
|
#define | RATE 24 |
|
#define | CHANNEL 22 |
|
#define | FRAMESIZE 34 |
|
#define | FORMAT 42 |
|
#define | SET32(buf, offset, x) (*((uint32_t*)(buf+offset)) = x) |
|
#define | SET16(buf, offset, x) (*((uint16_t*)(buf+offset)) = x) |
|
#define | LSB16(x) if ( !rsnd_is_little_endian() ) { rsnd_swap_endian_16(&(x)); } |
|
#define | LSB32(x) if ( !rsnd_is_little_endian() ) { rsnd_swap_endian_32(&(x)); } |
|
#define | RSND_HEADER_SIZE 8 |
|
#define | LATENCY 0 |
|
#define | CHUNKSIZE 1 |
|
#define | MAX_CHUNK_SIZE 1024 |
|
#define | MAX_TCP_BUFSIZE (1 << 14) |
|
#define | MAX_PACKET_SIZE 1024 |
|
#define | RSD_PROTO_MAXSIZE 256 |
|
#define | RSD_PROTO_CHUNKSIZE 8 |
|
#define | _TEST_CANCEL() |
|
|
static ssize_t | rsnd_send_chunk (int socket, const void *buf, size_t size, int blocking) |
|
static ssize_t | rsnd_recv_chunk (int socket, void *buf, size_t size, int blocking) |
|
static int | rsnd_start_thread (rsound_t *rd) |
|
static int | rsnd_stop_thread (rsound_t *rd) |
|
static size_t | rsnd_get_delay (rsound_t *rd) |
|
static size_t | rsnd_get_ptr (rsound_t *rd) |
|
static int | rsnd_reset (rsound_t *rd) |
|
static int | rsnd_send_identity_info (rsound_t *rd) |
|
static int | rsnd_close_ctl (rsound_t *rd) |
|
static int | rsnd_send_info_query (rsound_t *rd) |
|
static int | rsnd_update_server_info (rsound_t *rd) |
|
static int | rsnd_poll (struct pollfd *fd, int numfd, int timeout) |
|
static void | rsnd_cb_thread (void *thread_data) |
|
static void | rsnd_thread (void *thread_data) |
|
static INLINE int | rsnd_is_little_endian (void) |
|
static INLINE void | rsnd_swap_endian_16 (uint16_t *x) |
|
static INLINE void | rsnd_swap_endian_32 (uint32_t *x) |
|
static INLINE int | rsnd_format_to_samplesize (uint16_t fmt) |
|
int | rsd_samplesize (rsound_t *rd) |
|
static int | rsnd_connect_server (rsound_t *rd) |
|
static int | rsnd_send_header_info (rsound_t *rd) |
|
static int | rsnd_get_backend_info (rsound_t *rd) |
|
static int | rsnd_create_connection (rsound_t *rd) |
|
static int64_t | rsnd_get_time_usec (void) |
|
static void | rsnd_drain (rsound_t *rd) |
|
static size_t | rsnd_fill_buffer (rsound_t *rd, const char *buf, size_t size) |
|
int | rsd_stop (rsound_t *rd) |
|
size_t | rsd_write (rsound_t *rsound, const void *buf, size_t size) |
|
int | rsd_start (rsound_t *rsound) |
|
int | rsd_exec (rsound_t *rsound) |
|
int | rsd_set_param (rsound_t *rd, enum rsd_settings option, void *param) |
|
void | rsd_delay_wait (rsound_t *rd) |
|
size_t | rsd_pointer (rsound_t *rsound) |
|
size_t | rsd_get_avail (rsound_t *rd) |
|
size_t | rsd_delay (rsound_t *rd) |
|
size_t | rsd_delay_ms (rsound_t *rd) |
|
int | rsd_pause (rsound_t *rsound, int enable) |
|
int | rsd_init (rsound_t **rsound) |
|
int | rsd_simple_start (rsound_t **rsound, const char *host, const char *port, const char *ident, int rate, int channels, enum rsd_format format) |
|
void | rsd_set_callback (rsound_t *rsound, rsd_audio_callback_t audio_cb, rsd_error_callback_t err_cb, size_t max_size, void *userdata) |
|
void | rsd_callback_lock (rsound_t *rsound) |
|
void | rsd_callback_unlock (rsound_t *rsound) |
|
int | rsd_free (rsound_t *rsound) |
|