Represents a container for sound data, and handles the details of storage and streaming. This is a reference counted object, so all copies of the object refer to the same thing, and the object's data will only be freed once all copies are freed. More...
#include <Buffer.h>
Inherits ReferenceCountedData< InternalSharedBufferData >.
Public Member Functions | |
Buffer (Source &source, BufferBehavior bufferBehavior, float streamSizeInSeconds=0.2f) | |
Constructs a buffer that pulls data from a source, using the specified behavior. if bufferBehavior is a streaming type, it specifies how much time to buffer ahead of the streaming source. The soundSource will be Duplicate()'d during this call, so the passed in instance may be safely freed. | |
Buffer () | |
Constructs an empty unusable buffer. | |
bool | IsReal () const |
Returns whether the buffer has a real source attached to it. |
Represents a container for sound data, and handles the details of storage and streaming. This is a reference counted object, so all copies of the object refer to the same thing, and the object's data will only be freed once all copies are freed.