From 86610e5796cdf65b383c7612bc069bbc2c24cebf Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 25 Jul 2022 14:28:52 +0200 Subject: Add support for audio devices MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- libgamepad.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'libgamepad.h') diff --git a/libgamepad.h b/libgamepad.h index 5b6c46c..46a09e2 100644 --- a/libgamepad.h +++ b/libgamepad.h @@ -339,6 +339,15 @@ int libgamepad_open_superdevice(struct libgamepad_superdevice *, const char *); */ void libgamepad_close_superdevice(struct libgamepad_superdevice *); +/** + * Search for sound devices built into or attached a device + * + * @param syspath The superdevice's path in /sys + * @param cardsp Output parameter for a list of sound card indices + * @return The number of found sound cards, -1 on failure + */ +ssize_t libgamepad_find_sound_devices(const char *, size_t **); + /** * Create a device attachment monitor -- cgit v1.2.3-70-g09d2