diff options
Diffstat (limited to 'libasound.c')
-rw-r--r-- | libasound.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libasound.c b/libasound.c index 00bf1a6..5dcbdbe 100644 --- a/libasound.c +++ b/libasound.c @@ -283,6 +283,12 @@ snd_pcm_state(snd_pcm_t *pcm) return SND_PCM_STATE_OPEN; } +int +snd_pcm_wait(snd_pcm_t *pcm, int timeout) +{ + return 1; // we are always ready for io +} + static size_t io_do(snd_pcm_t *pcm, void *buffer, const size_t frames, size_t (*io)(struct sio_hdl*, void*, size_t)) { @@ -451,6 +457,12 @@ snd_pcm_pause(snd_pcm_t *pcm, int enable) return (enable ? snd_pcm_drain(pcm) : snd_pcm_start(pcm)); } +int +snd_pcm_reset(snd_pcm_t *pcm) +{ + return (!snd_pcm_drain(pcm) && !snd_pcm_prepare(pcm) ? 0 : -1); +} + size_t snd_pcm_hw_params_sizeof(void) { |