The Media Kit Table of Contents | The Media Kit Index |
Derived from: BBuffer
Declared in: be/media/Buffer.h
Library: libmedia.so
Allocation: Constructor only
The BSmallBuffer class provides small, efficient buffers for MIDI and other small packet-based media types.
To use BSmallBuffers, create a BSmallBuffer, then fill it with up to SmallBufferSizeLimit() bytes of data. Then call SendBuffer(). You can then immediately reuse the buffer.
How is this possible? BSmallBuffers don't go in buffer groups. The receiver immediately either processes the buffer (if it's time) or caches it until it's needed, then recycles the buffer.
|
Constructor. Creates a small buffer that can hold up to SmallBufferSizeLimit() bytes.
|
Returns the maximum number of bytes a BSmallBuffer can contain.
The Media Kit Table of Contents | The Media Kit Index |
Copyright © 1999 Be, Inc. All rights reserved.
Text last modified