summaryrefslogtreecommitdiff
path: root/aserver
diff options
context:
space:
mode:
authorAbramo Bagnara <abramo@alsa-project.org>2001-02-04 17:03:17 +0000
committerAbramo Bagnara <abramo@alsa-project.org>2001-02-04 17:03:17 +0000
commita7561a9c7eaf4f0a5daa48f049c3d1e9a503380b (patch)
treec008f59b70a8f23caa4eb9e9c3cf4ffb84ff885f /aserver
parent544718f10d04eae7bebae17e0f669ccba996994c (diff)
downloadalsa-lib-a7561a9c7eaf4f0a5daa48f049c3d1e9a503380b.tar.gz
Corrected and completed encapsulation for PCM and rawmidi. Remove SND_PCM_HW_PARAM_* and use functions. Separated rawmidi info between streams
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 8a2c41d1..f143c264 100644
--- a/aserver/aserver.c
+++ b/aserver/aserver.c
@@ -274,7 +274,7 @@ int pcm_shm_open(client_t *client, int *cookie)
snd_pcm_t *pcm;
int err;
int result;
- err = snd_pcm_open(&pcm, client->name, client->stream, SND_PCM_NONBLOCK);
+ err = snd_pcm_open(&pcm, client->name, snd_int_to_enum(client->stream), SND_PCM_NONBLOCK);
if (err < 0)
return err;
client->device.pcm.handle = pcm;
@@ -394,7 +394,7 @@ 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_pcm_state(pcm);
+ ctrl->result = snd_enum_to_int(snd_pcm_state(pcm));
break;
case SNDRV_PCM_IOCTL_DELAY:
ctrl->result = snd_pcm_delay(pcm, (snd_pcm_sframes_t *) &ctrl->u.delay.frames);