mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-31 22:25:35 -04:00
Removed obsolete functions
This commit is contained in:
parent
af63d2b597
commit
2110049f2f
2 changed files with 0 additions and 37 deletions
|
|
@ -189,13 +189,6 @@ extern "C" {
|
||||||
int snd_pcm_open(snd_pcm_t **pcm, char *name,
|
int snd_pcm_open(snd_pcm_t **pcm, char *name,
|
||||||
int stream, int mode);
|
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);
|
snd_pcm_type_t snd_pcm_type(snd_pcm_t *pcm);
|
||||||
int snd_pcm_close(snd_pcm_t *pcm);
|
int snd_pcm_close(snd_pcm_t *pcm);
|
||||||
int snd_pcm_poll_descriptor(snd_pcm_t *pcm);
|
int snd_pcm_poll_descriptor(snd_pcm_t *pcm);
|
||||||
|
|
|
||||||
|
|
@ -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);
|
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 */
|
/* FIXME */
|
||||||
#define snd_pcm_link_descriptor snd_pcm_poll_descriptor
|
#define snd_pcm_link_descriptor snd_pcm_poll_descriptor
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue