summaryrefslogtreecommitdiff
path: root/aserver
diff options
context:
space:
mode:
authorJaroslav Kysela <perex@perex.cz>2001-07-11 14:09:01 +0000
committerJaroslav Kysela <perex@perex.cz>2001-07-11 14:09:01 +0000
commitc20c954f3d3885c34069657214b594136263f301 (patch)
treeb3f65869643254aa6525d2509d9dfbc0fd24f2bd /aserver
parent8eceb0cdc26b5e7118878fe894f8a7948e34c51c (diff)
Added documentation for instrument and midi event functions.
Removed snd_enum_() macros. Documentation changes in asoundlib.h.
Diffstat (limited to 'aserver')
-rw-r--r--aserver/aserver.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/aserver/aserver.c b/aserver/aserver.c
index 9ba0eea8..72633a1f 100644
--- a/aserver/aserver.c
+++ b/aserver/aserver.c
@@ -277,7 +277,7 @@ static int pcm_shm_open(client_t *client, int *cookie)
snd_pcm_t *pcm;
int err;
int result;
- err = snd_pcm_open(&pcm, client->name, snd_int_to_enum(client->stream), SND_PCM_NONBLOCK);
+ err = snd_pcm_open(&pcm, client->name, client->stream, SND_PCM_NONBLOCK);
if (err < 0)
return err;
client->device.pcm.handle = pcm;
@@ -417,7 +417,7 @@ static int pcm_shm_cmd(client_t *client)
ctrl->result = snd_pcm_status(pcm, (snd_pcm_status_t *) &ctrl->u.status);
break;
case SND_PCM_IOCTL_STATE:
- ctrl->result = snd_enum_to_int(snd_pcm_state(pcm));
+ ctrl->result = snd_pcm_state(pcm);
break;
case SNDRV_PCM_IOCTL_DELAY:
ctrl->result = snd_pcm_delay(pcm, (snd_pcm_sframes_t *) &ctrl->u.delay.frames);