PrimoBurner(tm) for C++
4.2
CD, DVD and Blu-ray Software Development Kit
|
Represents a track buffer - used for reading data from audio and data tracks. More...
#include <PrimoBurner.h>
Inherits Reference.
Public Member Functions | |
virtual int32_t | blocks () const =0 |
Gets the available blocks in the buffer. | |
virtual int32_t | blockSize () const =0 |
Gets the size of one block in the buffer. | |
virtual uint8_t * | buffer () const =0 |
Gets a pointer to the start of the internal buffer. | |
virtual int32_t | maxBlocks () const =0 |
Gets the maximum size of the buffer, in blocks. | |
virtual void | setBlockSize (int32_t blockSize)=0 |
Sets the requested block size to read when using Device::readData. |
Represents a track buffer - used for reading data from audio and data tracks.
virtual int32_t blocks | ( | ) | const [pure virtual] |
Gets the available blocks in the buffer.
This property changes on every read operation performed by Device::readData and Device::readAudio.
virtual int32_t blockSize | ( | ) | const [pure virtual] |
Gets the size of one block in the buffer.
Device::readData changes the value of this property according to the size of the blocks it reads within a single read operation. TrackBuffer always holds blocks of the same size.
virtual uint8_t* buffer | ( | ) | const [pure virtual] |
Gets a pointer to the start of the internal buffer.
The number of available data bytes is equal to blocks * blocksSize.
virtual int32_t maxBlocks | ( | ) | const [pure virtual] |
Gets the maximum size of the buffer, in blocks.
This value is determined when the buffer is created with Library::createTrackBuffer.
virtual void setBlockSize | ( | int32_t | blockSize | ) | [pure virtual] |
Sets the requested block size to read when using Device::readData.
Initially this value is determined when the buffer is created with Library::createTrackBuffer.
blockSize | The requested block size in bytes. |