On Fri, Dec 12, 2008 at 04:57:50AM +0000, Jacob Meuser wrote:
> On Thu, Dec 11, 2008 at 08:44:10PM +0000, Jacob Meuser wrote:
> >
> > please test ... and notice how much simpler this is than what it
> > replaces, even though esound prefers to use a fd for audio access.
>
> new version based on some feedback.
>
great!
playback works. recoding doesn't work, but it doesn't work with the
sun api backend either.
> +
> + device = esd_audio_device ? esd_audio_device : getenv("AUDIODEVICE");
> + if ((hdl = sio_open(device, mode, 0)) == NULL) {
> + fprintf(stderr, "sio_open failed\n");
> + goto bad;
> + }
> +
sio_open() will check for the AUDIODEVICE env variable, leaving
NULL as device path is ok.
beside that everything is ok ;)
-- Alexandre