~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
empeg integration
[disorder]
/
server
/
speaker.h
diff --git
a/server/speaker.h
b/server/speaker.h
index
c1a76e2
..
ae4eac3
100644
(file)
--- a/
server/speaker.h
+++ b/
server/speaker.h
@@
-47,9
+47,13
@@
/** @brief Bytes to send per network packet
*
/** @brief Bytes to send per network packet
*
+ * This is the maximum number of bytes we pass to write(2); to determine actual
+ * packet sizes, add a UDP header and an IP header (and a link layer header if
+ * it's the link layer size you care about).
+ *
* Don't make this too big or arithmetic will start to overflow.
*/
* Don't make this too big or arithmetic will start to overflow.
*/
-#define NETWORK_BYTES (1
024+sizeof(struct rtp_header)
)
+#define NETWORK_BYTES (1
500-8/*UDP*/-40/*IP*/-8/*conservatism*/
)
/** @brief Maximum RTP playahead (ms) */
#define RTP_AHEAD_MS 1000
/** @brief Maximum RTP playahead (ms) */
#define RTP_AHEAD_MS 1000
@@
-212,6
+216,8
@@
extern struct track *playing;
extern const struct speaker_backend network_backend;
extern const struct speaker_backend alsa_backend;
extern const struct speaker_backend command_backend;
extern const struct speaker_backend network_backend;
extern const struct speaker_backend alsa_backend;
extern const struct speaker_backend command_backend;
+extern const struct speaker_backend coreaudio_backend;
+extern const struct speaker_backend oss_backend;
extern struct pollfd fds[NFDS];
extern int fdno;
extern struct pollfd fds[NFDS];
extern int fdno;