From 2110049f2f6f8593647a0da0c92d0a8dfd591cf2 Mon Sep 17 00:00:00 2001 From: Abramo Bagnara Date: Thu, 1 Feb 2001 20:41:50 +0000 Subject: [PATCH] Removed obsolete functions --- include/pcm.h | 7 ------- src/pcm/pcm.c | 30 ------------------------------ 2 files changed, 37 deletions(-) diff --git a/include/pcm.h b/include/pcm.h index a731c5db..fa2ed12c 100644 --- a/include/pcm.h +++ b/include/pcm.h @@ -189,13 +189,6 @@ extern "C" { int snd_pcm_open(snd_pcm_t **pcm, char *name, int stream, int mode); -/* Obsolete functions */ -#define snd_pcm_write snd_pcm_writei -#define snd_pcm_read snd_pcm_readi -snd_pcm_sframes_t snd_pcm_writev(snd_pcm_t *pcm, const struct iovec *vector, int count); -snd_pcm_sframes_t snd_pcm_readv(snd_pcm_t *pcm, const struct iovec *vector, int count); - - snd_pcm_type_t snd_pcm_type(snd_pcm_t *pcm); int snd_pcm_close(snd_pcm_t *pcm); int snd_pcm_poll_descriptor(snd_pcm_t *pcm); diff --git a/src/pcm/pcm.c b/src/pcm/pcm.c index 4c7e5f43..41150c40 100644 --- a/src/pcm/pcm.c +++ b/src/pcm/pcm.c @@ -199,36 +199,6 @@ snd_pcm_sframes_t snd_pcm_readn(snd_pcm_t *pcm, void **bufs, snd_pcm_uframes_t s return _snd_pcm_readn(pcm, bufs, size); } -snd_pcm_sframes_t snd_pcm_writev(snd_pcm_t *pcm, const struct iovec *vector, int count) -{ - void **bufs; - int k; - assert(pcm); - assert(pcm->setup); - assert((int)pcm->channels == count); - bufs = alloca(sizeof(*bufs) * count); - for (k = 0; k < count; ++k) { - bufs[k] = vector[k].iov_base; - assert(vector[k].iov_len == vector[0].iov_len); - } - return snd_pcm_writen(pcm, bufs, vector[0].iov_len); -} - -snd_pcm_sframes_t snd_pcm_readv(snd_pcm_t *pcm, const struct iovec *vector, int count) -{ - void **bufs; - int k; - assert(pcm); - assert(pcm->setup); - assert((int)pcm->channels == count); - bufs = alloca(sizeof(*bufs) * count); - for (k = 0; k < count; ++k) { - bufs[k] = vector[k].iov_base; - assert(vector[k].iov_len == vector[0].iov_len); - } - return snd_pcm_readn(pcm, bufs, vector[0].iov_len); -} - /* FIXME */ #define snd_pcm_link_descriptor snd_pcm_poll_descriptor -- 2.11.0