mirror of
https://github.com/Kbz-8/Pulse.git
synced 2026-01-11 15:33:34 +00:00
adding buffer mapping
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
// For conditions of distribution and use, see copyright notice in LICENSE
|
||||
|
||||
#include "Pulse.h"
|
||||
#include "PulseDefs.h"
|
||||
#include "PulseInternal.h"
|
||||
|
||||
PULSE_API PulseBuffer PulseCreateBuffer(PulseDevice device, const PulseBufferCreateInfo* create_infos)
|
||||
@@ -20,6 +21,13 @@ PULSE_API PulseBuffer PulseCreateBuffer(PulseDevice device, const PulseBufferCre
|
||||
return device->PFN_CreateBuffer(device, create_infos);
|
||||
}
|
||||
|
||||
PULSE_API bool PulseGetBufferMap(PulseBuffer buffer, void** data)
|
||||
{
|
||||
PULSE_CHECK_HANDLE_RETVAL(buffer, false);
|
||||
PULSE_CHECK_PTR_RETVAL(data, false);
|
||||
return buffer->device->PFN_GetBufferMap(buffer, data);
|
||||
}
|
||||
|
||||
PULSE_API void PulseDestroyBuffer(PulseDevice device, PulseBuffer buffer)
|
||||
{
|
||||
PULSE_CHECK_HANDLE(device);
|
||||
|
||||
Reference in New Issue
Block a user