or writing to a subprocess.
+ if(config->speaker_command)
+ return -1;
#if API_ALSA
/* If we need to change format then close the current device. */
if(pcm && !formats_equal(&playing->format, &pcm_format))
#if API_ALSA
/* If we need to change format then close the current device. */
if(pcm && !formats_equal(&playing->format, &pcm_format))
else
avail_bytes = playing->used;
else
avail_bytes = playing->used;
+ if(!config->speaker_command) {
#if API_ALSA
snd_pcm_sframes_t pcm_written_frames;
size_t avail_frames;
#if API_ALSA
snd_pcm_sframes_t pcm_written_frames;
size_t avail_frames;
alsa_slots = -1;
kid_slot = -1;
if(ready && !forceplay) {
alsa_slots = -1;
kid_slot = -1;
if(ready && !forceplay) {
- if(kidfd >= 0)
- kid_slot = addfd(kidfd, POLLOUT);
- else {
+ if(config->speaker_command) {
+ if(kidfd >= 0)
+ kid_slot = addfd(kidfd, POLLOUT);
+ } else {
#if API_ALSA
int retry = 3;
#if API_ALSA
int retry = 3;