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.
...in lovely HTML... for BeOS Release 5. Copyright © 2000 Be, Inc. All rights reserved.. |