static void begin_au(int fd, size_t count);
static void end_au(int fd);
+static void suspend(void);
+
static const struct fmt_capture {
void (*start) (int fd, size_t count);
void (*end) (int fd);
fprintf(stderr, _("\rPAUSE command ignored (no hw support)\n"));
return;
}
+ if (snd_pcm_state(handle) == SND_PCM_STATE_SUSPENDED)
+ suspend();
+
err = snd_pcm_pause(handle, 1);
if (err < 0) {
error(_("pause push error: %s"), snd_strerror(err));
while (read(fileno(stdin), &b, 1) != 1);
if (b == ' ' || b == '\r') {
while (read(fileno(stdin), &b, 1) == 1);
+ if (snd_pcm_state(handle) == SND_PCM_STATE_SUSPENDED)
+ suspend();
err = snd_pcm_pause(handle, 0);
if (err < 0)
error(_("pause release error: %s"), snd_strerror(err));