mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-23 00:34:03 +02:00
API CHANGE: Remove ma_get_backend_name().
Use `ma_get_device_backend_info()` or `ma_context_get_backend_info()` instead.
This commit is contained in:
-15
@@ -9577,12 +9577,6 @@ MA_API ma_uint32 ma_calculate_buffer_size_in_frames_from_descriptor(const ma_dev
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
Retrieves a friendly name for a backend.
|
|
||||||
*/
|
|
||||||
MA_API const char* ma_get_backend_name(ma_backend backend);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Retrieves the backend enum from the given name.
|
Retrieves the backend enum from the given name.
|
||||||
*/
|
*/
|
||||||
@@ -19617,15 +19611,6 @@ static ma_backend_name gBackendInfo[] = /* Indexed by the backend enum. Must be
|
|||||||
{ma_backend_null, "Null"}
|
{ma_backend_null, "Null"}
|
||||||
};
|
};
|
||||||
|
|
||||||
MA_API const char* ma_get_backend_name(ma_backend backend)
|
|
||||||
{
|
|
||||||
if (backend < 0 || backend >= (int)ma_countof(gBackendInfo)) {
|
|
||||||
return "Unknown";
|
|
||||||
}
|
|
||||||
|
|
||||||
return gBackendInfo[backend].pName;
|
|
||||||
}
|
|
||||||
|
|
||||||
MA_API ma_result ma_get_backend_from_name(const char* pBackendName, ma_backend* pBackend)
|
MA_API ma_result ma_get_backend_from_name(const char* pBackendName, ma_backend* pBackend)
|
||||||
{
|
{
|
||||||
size_t iBackend;
|
size_t iBackend;
|
||||||
|
|||||||
Reference in New Issue
Block a user