switch(config->speaker_backend) {
#if API_ALSA
- case BACKEND_ALSA:
+ case BACKEND_ALSA: {
snd_pcm_sframes_t pcm_written_frames;
size_t avail_frames;
int err;
written_frames = pcm_written_frames;
written_bytes = written_frames * bpf;
break;
+ }
#endif
case BACKEND_COMMAND:
if(avail_bytes > frames * bpf)
}
break;
#if API_ALSA
- case BACKEND_ALSA:
+ case BACKEND_ALSA: {
/* We send sample data to ALSA as fast as it can accept it, relying on
* the fact that it has a relatively small buffer to minimize pause
* latency. */
if(alsa_nslots >= 0)
fdno += alsa_nslots;
break;
+ }
#endif
default:
assert(!"unknown backend");