UID | title | description | old-location | tech.root | ms.date | keywords | ms.keywords | req.header | req.include-header | req.target-type | req.target-min-winverclnt | req.target-min-winversvr | req.kmdf-ver | req.umdf-ver | req.ddi-compliance | req.unicode-ansi | req.idl | req.max-support | req.namespace | req.assembly | req.type-library | req.lib | req.dll | req.irql | targetos | req.typenames | f1_keywords | topic_type | api_type | api_location | api_name | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
NF:dmusicks.IAllocatorMXF.GetBuffer |
IAllocatorMXF::GetBuffer (dmusicks.h) |
The GetBuffer method allocates a buffer for long MIDI events. |
audio\iallocatormxf_getbuffer.htm |
audio |
08/10/2023 |
|
GetBuffer, GetBuffer method [Audio Devices], GetBuffer method [Audio Devices],IAllocatorMXF interface, IAllocatorMXF interface [Audio Devices],GetBuffer method, IAllocatorMXF.GetBuffer, IAllocatorMXF::GetBuffer, audio.iallocatormxf_getbuffer, audmp-routines_5abb78f4-de92-4342-877f-e7f1c15f8d8e.xml, dmusicks/IAllocatorMXF::GetBuffer |
dmusicks.h |
Dmusicks.h |
Desktop |
<=DISPATCH_LEVEL |
Windows |
|
|
|
|
|
The GetBuffer
method allocates a buffer for long MIDI events.
Output pointer for the buffer. This parameter points to a caller-allocated pointer variable into which the method writes a pointer to the buffer.
GetBuffer
returns S_OK if the call was successful. Otherwise, the method returns an appropriate error code.
The miniport driver calls this method only when it needs to send large chunks of data to the capture sink. Specifically, the miniport driver uses this method whenever a component needs to package more data than can be stored in the uData member of DMUS_KERNEL_EVENT.
The size of the buffer can determined by calling IAllocatorMXF::GetBufferSize. GetBufferSize
needs to be called only once because the buffer size is constant for any allocator implementation.