+/INSTALL
/shairport-sync
/shairport-sync.exe
/*.o
+++ /dev/null
-Installation Instructions
-*************************
-
-Please refer to README.md for installation instructions.
return time_now_fp;
}
-#ifdef CONFIG_METADATA
ssize_t non_blocking_write(int fd, const void *buf, size_t count) {
void *ibuf = (void *)buf;
size_t bytes_remaining = count;
// check that we can do some writing
ufds[0].fd = fd;
ufds[0].events = POLLOUT;
- rc = poll(ufds, 1, config.metadata_pipe_timeout);
+ rc = poll(ufds, 1, 5000);
if (rc < 0) {
// debug(1, "non-blocking write error waiting for pipe to become ready for writing...");
} else if (rc == 0) {
return rc;
// return write(fd,buf,count);
}
-#endif
/* from http://coding.debuntu.org/c-implementing-str_replace-replace-all-occurrences-substring#comment-722 */
char *service_name; // the name for the shairport service, e.g. "Shairport Sync Version %v running on host %h"
#ifdef CONFIG_METADATA
int metadata_enabled;
- int metadata_pipe_timeout; // in milliseconds
char *metadata_pipename;
char *metadata_sockaddr;
int metadata_sockport;
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.50])
-AC_INIT([shairport-sync], [2.8.4.1], [mikebrady@eircom.net])
+AC_INIT([shairport-sync], [2.8.4.2], [mikebrady@eircom.net])
AM_INIT_AUTOMAKE
AC_CONFIG_SRCDIR([shairport.c])
AC_CONFIG_HEADERS([config.h])
// strerror(errno));
continue;
}
-
ret = setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &yes, sizeof(yes));
#ifdef IPV6_V6ONLY
if (config_lookup_int(config.cfg, "metadata.socket_msglength", &value)) {
config.metadata_sockmsglength = value < 500 ? 500 : value > 65000 ? 65000 : value;
}
- if (config_lookup_int(config.cfg, "metadata.pipe_timeout", &value)) {
-
- if ((value < 1) || (value > 150000))
- die("Invalid timeout range \"%sd\". It should be in the range 1 to 150,000 milliseconds.",
- value);
- else
- config.metadata_pipe_timeout = value;
- }
#endif
//snprintf(config.service_name, 20 + 100, "Shairport Sync on %s", hostname);
set_requested_connection_state_to_output(1); // we expect to be able to connect to the output device
config.audio_backend_buffer_desired_length = 6615; // 0.15 seconds.
-#ifdef CONFIG_METADATA
- config.metadata_pipe_timeout = 5000; //milliseconds
-#endif
config.udp_port_base = 6001;
config.udp_port_range = 100;