Subject: Re: Implementing SNDCTL_DSP_GETODELAY in compat_ossaudio/libossaudio
To: Blair Sadewitz <blair.sadewitz@gmail.com>
From: Jared D. McNeill <jmcneill@invisible.ca>
List: tech-kern
Date: 06/23/2007 15:35:15
On 23-Jun-07, at 2:44 PM, Blair Sadewitz wrote:

> I've started working on porting pulseaudio (a feature-rich esound
> replacement) to NetBSD again.
> While I could build it simply by having ioctls with
> SNDCTL_DSP_GETODELAY (output latency) return EINVAL, pulseaudio won't
> perform nearly as well in many cases if it doesn't have this
> information.
>
> I'm wondering if there's anything precluding the implementation of
> this and/or if anyone's looked into this before.

IIUC, this should be pretty easy to implement using the new  
AUDIO_GETBUFINFO ioctl.

Cheers,
Jared