chiark
/
gitweb
/
~mdw
/
disorder
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
515cd2b
)
bump RTP packet size a bit
author
Richard Kettlewell
<rjk@greenend.org.uk>
Fri, 5 Oct 2007 17:44:37 +0000
(18:44 +0100)
committer
Richard Kettlewell
<rjk@greenend.org.uk>
Fri, 5 Oct 2007 17:44:37 +0000
(18:44 +0100)
server/speaker.h
patch
|
blob
|
blame
|
history
diff --git
a/server/speaker.h
b/server/speaker.h
index 061da0b18d90a646c1943581b567c5c530b23375..ae4eac3d08a315ca821d1ffa5f34dbc643d4a879 100644
(file)
--- a/
server/speaker.h
+++ b/
server/speaker.h
@@
-46,10
+46,14
@@
#define FRAMES 4096
/** @brief Bytes to send per network packet
#define FRAMES 4096
/** @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