Merge pull request #1851 from acli/patch_20240513a

Various minor fixes. Many thanks.
This commit is contained in:
Mike Brady
2024-05-15 13:15:07 +01:00
committed by GitHub
4 changed files with 11 additions and 11 deletions
+2 -2
View File
@@ -41,7 +41,7 @@
#define RATE 44100
// Four seconds buffer -- should be plenty
#define buffer_allocation 44100 * 4 * 2 * 2
#define buffer_allocation RATE * 4 * 2 * 2
static pthread_mutex_t buffer_mutex = PTHREAD_MUTEX_INITIALIZER;
@@ -399,7 +399,7 @@ void stream_write_cb(pa_stream *stream, size_t requested_bytes,
ret = pa_stream_begin_write(stream, (void **)&buffer, &bytes_we_can_transfer);
if ((ret == 0) && (buffer != NULL)) {
if (bytes_we_can_transfer <= (size_t)(audio_umb - audio_toq)) {
// the bytes are all in a row in the audo buffer
// the bytes are all in a row in the audio buffer
memcpy(buffer, audio_toq, bytes_we_can_transfer);
audio_toq += bytes_we_can_transfer;
ret = pa_stream_write(stream, buffer, bytes_we_can_transfer, NULL, 0LL, PA_SEEK_RELATIVE);
+6 -6
View File
@@ -1,11 +1,11 @@
shairport-sync.1: shairport-sync.1.xml
xmltoman shairport-sync.1.xml > shairport-sync.1
shairport-sync.html: shairport-sync.1.xml
xsltproc xmltoman.xsl shairport-sync.1.xml > shairport-sync.html
all: shairport-sync.1 shairport-sync.html
%.1: %.1.xml
xmltoman $*.1.xml > $*.tmp && mv $*.tmp $*.1
%.html: %.1.xml
xsltproc xmltoman.xsl $*.1.xml > $*.tmp && mv $*.tmp $*.html
clean:
rm shairport-sync.1
rm shairport-sync.html
+2 -2
View File
@@ -353,7 +353,7 @@
<option>
<p><opt>--statistics</opt></p>
<optdesc><p>
Print some performance information to <file>STDERR</file>, or to <opt>syslog</opt> if the <opt>-log-to-syslog</opt> command line option is also chosen.
Print some performance information to <file>STDERR</file>, or to <opt>syslog</opt> if the <opt>--log-to-syslog</opt> command line option is also chosen.
</p></optdesc>
</option>
@@ -416,7 +416,7 @@
<option>
<p><opt>-v | --verbose</opt></p>
<optdesc><p>
Print debug information to the <file>STDERR</file>, or to <opt>syslog</opt> if the <opt>-log-to-syslog</opt> command line option is also chosen.
Print debug information to the <file>STDERR</file>, or to <opt>syslog</opt> if the <opt>--log-to-syslog</opt> command line option is also chosen.
Repeat up to three times (i.e. <opt>-vv</opt> or <opt>-vvv</opt>) for more detail. You should use <opt>-vvv</opt> very sparingly -- it is really noisy.
</p></optdesc>
</option>
+1 -1
View File
@@ -291,7 +291,7 @@ void usage(char *progname) {
printf(" -c, --configfile=FILE Read configuration settings from FILE. Default is %s.\n", configuration_file_path);
printf(" -a, --name=NAME Set service name. Default is the hostname with first letter capitalised.\n");
printf(" --password=PASSWORD Require PASSWORD to connect. Default is no password. (Classic AirPlay only.)\n");
printf(" -p, --port=PORT Set RTSP listening port. Default 5000; 7000 for AirPlay 2./\n");
printf(" -p, --port=PORT Set RTSP listening port. Default 5000; 7000 for AirPlay 2.\n");
printf(" -L, --latency=FRAMES [Deprecated] Set the latency for audio sent from an unknown device.\n");
printf(" The default is to set it automatically.\n");
printf(" -S, --stuffing=MODE Set how to adjust current latency to match desired latency, where:\n");