| 690 |
if (pause) { |
if (pause) { |
| 691 |
err = snd_pcm_drop (handle); |
err = snd_pcm_drop (handle); |
| 692 |
if (err < 0) { |
if (err < 0) { |
| 693 |
alsa_logerr (err, "Could not stop %s", typ); |
alsa_logerr (err, "Could not stop %s\n", typ); |
| 694 |
return -1; |
return -1; |
| 695 |
} |
} |
| 696 |
} |
} |
| 697 |
else { |
else { |
| 698 |
err = snd_pcm_prepare (handle); |
err = snd_pcm_prepare (handle); |
| 699 |
if (err < 0) { |
if (err < 0) { |
| 700 |
alsa_logerr (err, "Could not prepare handle for %s", typ); |
alsa_logerr (err, "Could not prepare handle for %s\n", typ); |
| 701 |
return -1; |
return -1; |
| 702 |
} |
} |
| 703 |
} |
} |