Class dsp::Seekable

class Seekable : public dsp::Input

Pure virtual base class of sources that can seek through data.

This class defines the common interface as well as some basic functionality relating to sources of TimeSeries data that can seek

Subclassed by dsp::File

Public Functions

Seekable(const char *name)

Constructor.

virtual ~Seekable()

Destructor.

virtual bool eod() const

Return true when end of data has been reached.

virtual void rewind()

Rewind to the start of the data.

inline virtual uint64_t get_current_sample()

Inquire current time sample.

virtual void set_output(BitSeries *data)

Set the bits series into which data will be loaded.

void set_overlap_buffer(BitSeries*)

Buffer used to store overlap (useful in multi-threaded applications).

void set_overlap_buffer_memory(Memory *memory)

Set the memory type used in the overlap buffer.