dep/cubeb: Add cubeb_get_backend_names()

This commit is contained in:
Connor McLaughlin
2022-08-05 17:43:43 +10:00
parent 8f45bf7f27
commit 609b050676
2 changed files with 60 additions and 0 deletions

View File

@ -469,6 +469,11 @@ CUBEB_EXPORT int
cubeb_init(cubeb ** context, char const * context_name,
char const * backend_name);
/** Returns a list of backend names which can be supplid to cubeb_init().
Array is null-terminated. */
CUBEB_EXPORT const char**
cubeb_get_backend_names();
/** Get a read-only string identifying this context's current backend.
@param context A pointer to the cubeb context.
@retval Read-only string identifying current backend. */