|
VRS
A file format for sensor data.
|
Specialized version of ContentBlockReader to handle content blocks containing audio data. More...
#include <ContentBlockReader.h>
Public Member Functions | |
| AudioBlockReader (const RecordFormat &recordFormat, size_t blockIndex) | |
| bool | readBlock (const CurrentRecord &, RecordFormatStreamPlayer &) override |
Public Member Functions inherited from vrs::ContentBlockReader | |
| virtual | ~ContentBlockReader () |
| Virtual destructor, since this is an abstract class. | |
Protected Member Functions | |
| bool | readAudioContentBlock (const CurrentRecord &, RecordFormatStreamPlayer &, const ContentBlock &) |
| bool | findAudioSpec (const CurrentRecord &, RecordFormatStreamPlayer &, RecordFormatReader *, size_t indexUpperLimit, size_t lastIndexToCheck, bool &readNextBlock) |
| bool | audioContentFromAudioSpec (const CurrentRecord &, RecordFormatStreamPlayer &, ContentBlock &outAudioContentBlock) |
| bool | tryCurrentAudioSpec (const CurrentRecord &, RecordFormatStreamPlayer &, bool &readNextBlock) |
Protected Member Functions inherited from vrs::ContentBlockReader | |
| ContentBlockReader (const RecordFormat &recordFormat, size_t blockIndex) | |
| bool | findNextContentBlockSpec (const CurrentRecord &record, RecordFormatStreamPlayer &player) |
| size_t | findContentBlockSize (const CurrentRecord &record, RecordFormatStreamPlayer &player) |
| uint32_t | findAudioSampleCount (const CurrentRecord &record, RecordFormatStreamPlayer &player) |
Protected Attributes | |
| datalayout_conventions::AudioSpec | audioSpec_ |
Protected Attributes inherited from vrs::ContentBlockReader | |
| const RecordFormat & | recordFormat_ |
| const size_t | blockIndex_ |
| unique_ptr< datalayout_conventions::NextContentBlockSpec > | contentBlockSpec_ |
Additional Inherited Members | |
Static Public Member Functions inherited from vrs::ContentBlockReader | |
| static unique_ptr< ContentBlockReader > | build (const RecordFormat &recordFormat, size_t blockIndex, unique_ptr< DataLayout > &&blockLayout) |
Specialized version of ContentBlockReader to handle content blocks containing audio data.
|
overridevirtual |
Method called by RecordFormatStreamPlayer when a content block needs to be read. To be implemented by each specialized ContentBlockReader class, which can then interpret the data of the format it expects.
Implements vrs::ContentBlockReader.