Re: [AD] new ALSA driver

[ Thread Index | Date Index | More Archives ]

Chris Robinson wrote:

I've also done substantial work on the driver. Multiple hardware voices, cleaner mode verification/selection when opening the voice, a proper sample caching API, etc (attached).

There is a potential problem in alsa.c, line 451. The thing is snd_pcm_open() will block if it fails for some reason (no more voices available). It won't return. Instead, you should open it with SND_PCM_NONBLOCK and then switch to blocking with snd_pcm_nonblock(&ex_data->pcm_handle, 0);

Milan Mimica

Mail converted by MHonArc 2.6.19+