diff --git a/.github/workflows/check_ap2_systemd_full.yml b/.github/workflows/check_ap2_systemd_full.yml index 780dd3a4..858b2af5 100644 --- a/.github/workflows/check_ap2_systemd_full.yml +++ b/.github/workflows/check_ap2_systemd_full.yml @@ -2,7 +2,7 @@ name: Full configuration (but without apple-alac) for systemd. on: push: - branches: [ "development" ] + branches: [ "development", "danger" ] jobs: build: diff --git a/.github/workflows/check_classic_mac_basic.yml b/.github/workflows/check_classic_mac_basic.yml index 2dc4e715..d41d0fc8 100644 --- a/.github/workflows/check_classic_mac_basic.yml +++ b/.github/workflows/check_classic_mac_basic.yml @@ -2,7 +2,7 @@ name: Basic libao configuration for macOS with BREW -- classic only, because mac on: push: - branches: [ "development" ] + branches: [ "development", "danger" ] jobs: build: diff --git a/.github/workflows/check_classic_systemd_full.yml b/.github/workflows/check_classic_systemd_full.yml index bbc7c02e..06744a03 100644 --- a/.github/workflows/check_classic_systemd_full.yml +++ b/.github/workflows/check_classic_systemd_full.yml @@ -2,7 +2,7 @@ name: Full classic configuration (but without apple-alac) for systemd, using a b on: push: - branches: [ "development" ] + branches: [ "development", "danger" ] jobs: build: diff --git a/audio_stdout.c b/audio_stdout.c index 61d91bfa..2b0fce04 100644 --- a/audio_stdout.c +++ b/audio_stdout.c @@ -37,21 +37,23 @@ #include static int fd = -1; +static int warned = 0; + static void start(__attribute__((unused)) int sample_rate, __attribute__((unused)) int sample_format) { fd = STDOUT_FILENO; + warned = 0; } static int play(void *buf, int samples, __attribute__((unused)) int sample_type, __attribute__((unused)) uint32_t timestamp, __attribute__((unused)) uint64_t playtime) { char errorstring[1024]; - int warned = 0; int rc = write(fd, buf, samples * 4); if ((rc < 0) && (warned == 0)) { strerror_r(errno, (char *)errorstring, 1024); - warn("Error %d writing to stdout: \"%s\".", errno, errorstring); + warn("Error %d writing to stdout (fd: %d): \"%s\".", errno, fd, errorstring); warned = 1; } return rc;