X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=nageru%2Falsa_pool.h;fp=nageru%2Falsa_pool.h;h=9c1715c56bb0bd2eb049de94c92cad588e93c8f0;hb=bd01e11a41a19fef2315319909d8655cac359f0f;hp=904e2ecf971f9850744b5e5a723e00aae073c399;hpb=a944bad466ba5601a96f6833e1ea2eb31f9b55af;p=nageru diff --git a/nageru/alsa_pool.h b/nageru/alsa_pool.h index 904e2ec..9c1715c 100644 --- a/nageru/alsa_pool.h +++ b/nageru/alsa_pool.h @@ -70,12 +70,13 @@ public: void init(); - // Get the list of all current devices. Note that this will implicitly mark - // all of the returned devices as held, since the input mapping UI needs - // some kind of stability when the user is to choose. Thus, when you are done - // with the list and have set a new mapping, you must go through all the devices - // you don't want and release them using release_device(). - std::vector get_devices(); + // Get the list of all current devices. Note that if hold_devices==true, + // all of the returned devices will be marked as held (used by the input mapping UI, + // which needs some kind of stability when the user is to choose). + // Thus, when you are done with the list and have set a new mapping, + // you must go through all the devices you don't want and release them + // using release_device(). + std::vector get_devices(bool hold_devices); void hold_device(unsigned index); void release_device(unsigned index); // Note: index is allowed to go out of bounds.