Re: [PATCH 3/6] wineoss.drv: Add MMDevAPI driver
25 Apr
2011
25 Apr
'11
10:34 a.m.
Andrew Eikum <aeikum(a)codeweavers.com> writes:
+{ + int i, mixer_fd; + oss_sysinfo sysinfo; + static int print_once = 0; + + TRACE("%d %p %p %p\n", flow, ids, num, def_index); + + mixer_fd = open("/dev/mixer", O_RDONLY, 0); + if(mixer_fd < 0){ + ERR("OSS /dev/mixer doesn't seem to exist\n"); + return AUDCLNT_E_SERVICE_NOT_RUNNING; + } + + if(ioctl(mixer_fd, SNDCTL_SYSINFO, &sysinfo) < 0){ + close(mixer_fd); + + if(errno == EINVAL){ + ERR("OSS version too old, need at least OSSv4\n"); + return AUDCLNT_E_SERVICE_NOT_RUNNING;
You'll need a configure check too, things like the oss_sysinfo type don't exist on OSSv3. -- Alexandre Julliard julliard(a)winehq.org
5435
Age (days ago)
5435
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard