[linux-audio-dev] HOw to create an ALSA out port

Jens M Andreasen jens.andreasen at chello.se
Tue Jul 26 19:17:49 UTC 2005


On Tue, 2005-07-26 at 20:43 +0200, Jens M Andreasen wrote:

>   snd_rawmidi_write(handle_out,gm_reset,sizeof(gm_reset));
>   
>   //  snd_rawmidi_drain(handle_out);
>   snd_rawmidi_close(handle_out);  

On second thought you'd better uncomment:

    //  snd_rawmidi_drain(handle_out);

... since it is the write that will block, and not the close operation.

/jens




More information about the Linux-audio-dev mailing list