Re: snd_ctl_open and snd_rawmidi_open conflict

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dmitry Baikov wrote:
> Another releated question is: how can I detect connection of a new
> usb-midi device?
> For now I use inotify on /dev/snd, but it's a kludge, cause I have to
> add sleep(1) before actual rescan of devices, or I miss the update.

The sequencer broadcasts notifications from the announce port when
sequencer clients/ports are created or destroyed.  (You don't need to
use the sequencer for your actual MIDI stuff.)


HTH
Clemens

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux