mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-22 08:14:04 +02:00
Use consistent nomenclature for device backend wakeup callbacks.
It should be "wakeup" instead of "wake".
This commit is contained in:
@@ -2891,7 +2891,7 @@ static ma_result ma_device_step__pipewire(ma_device* pDevice, ma_blocking_mode b
|
|||||||
return MA_SUCCESS;
|
return MA_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void ma_device_wake__pipewire(ma_device* pDevice)
|
static void ma_device_wakeup__pipewire(ma_device* pDevice)
|
||||||
{
|
{
|
||||||
ma_device_state_pipewire* pDeviceStatePipeWire = ma_device_get_backend_state__pipewire(pDevice);
|
ma_device_state_pipewire* pDeviceStatePipeWire = ma_device_get_backend_state__pipewire(pDevice);
|
||||||
ma_context_state_pipewire* pContextStatePipeWire = ma_context_get_backend_state__pipewire(ma_device_get_context(pDevice));
|
ma_context_state_pipewire* pContextStatePipeWire = ma_context_get_backend_state__pipewire(ma_device_get_context(pDevice));
|
||||||
@@ -2911,7 +2911,7 @@ static ma_device_backend_vtable ma_gDeviceBackendVTable_PipeWire =
|
|||||||
ma_device_start__pipewire,
|
ma_device_start__pipewire,
|
||||||
ma_device_stop__pipewire,
|
ma_device_stop__pipewire,
|
||||||
ma_device_step__pipewire,
|
ma_device_step__pipewire,
|
||||||
ma_device_wake__pipewire
|
ma_device_wakeup__pipewire
|
||||||
};
|
};
|
||||||
|
|
||||||
ma_device_backend_vtable* ma_device_backend_pipewire = &ma_gDeviceBackendVTable_PipeWire;
|
ma_device_backend_vtable* ma_device_backend_pipewire = &ma_gDeviceBackendVTable_PipeWire;
|
||||||
|
|||||||
@@ -660,7 +660,7 @@ static ma_result ma_device_step__sdl2(ma_device* pDevice, ma_blocking_mode block
|
|||||||
return ma_device_state_async_step(&pDeviceStateSDL->async, pDevice, blockingMode, NULL);
|
return ma_device_state_async_step(&pDeviceStateSDL->async, pDevice, blockingMode, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void ma_device_wake__sdl2(ma_device* pDevice)
|
static void ma_device_wakeup__sdl2(ma_device* pDevice)
|
||||||
{
|
{
|
||||||
ma_device_state_sdl2* pDeviceStateSDL = ma_device_get_backend_state__sdl2(pDevice);
|
ma_device_state_sdl2* pDeviceStateSDL = ma_device_get_backend_state__sdl2(pDevice);
|
||||||
ma_device_state_async_release(&pDeviceStateSDL->async);
|
ma_device_state_async_release(&pDeviceStateSDL->async);
|
||||||
@@ -677,7 +677,7 @@ static ma_device_backend_vtable ma_gDeviceBackendVTable_SDL2 =
|
|||||||
ma_device_start__sdl2,
|
ma_device_start__sdl2,
|
||||||
ma_device_stop__sdl2,
|
ma_device_stop__sdl2,
|
||||||
ma_device_step__sdl2,
|
ma_device_step__sdl2,
|
||||||
ma_device_wake__sdl2
|
ma_device_wakeup__sdl2
|
||||||
};
|
};
|
||||||
|
|
||||||
ma_device_backend_vtable* ma_device_backend_sdl2 = &ma_gDeviceBackendVTable_SDL2;
|
ma_device_backend_vtable* ma_device_backend_sdl2 = &ma_gDeviceBackendVTable_SDL2;
|
||||||
|
|||||||
Reference in New Issue
Block a user