BufferedSDIFFileReader.hxx File Reference

#include "SDIFInConfig.hxx"
#include "SDIFFileReader.hxx"
#include "Frame.hxx"
#include "Thread.hxx"
#include "Mutex.hxx"
#include <deque>

Go to the source code of this file.

Classes

class  CLAM::BufferedSDIFFileReader
 BufferedSDIFFileReader is an SDIFFileReader that preloads some SDIF frames into an internal buffer so that real-time audio applications won't stall while waiting for disk reading operations. More...

Namespaces

namespace  CLAM

Defines

#define DEFAULT_INITIAL_NUMBER_OF_FRAMES_TO_BUFFER   50
 this defines how many frames will be preloaded when this object is first created. if you're creating a lot of objects for a lot of SDIF files, you shouldn't make this too large
#define DEFAULT_FRAME_LOAD_CHUNK_SIZE   5
 this defines how many frames should be loaded before the thread yields. the current value is arbitrary, and needs to be refined.
#define DEFAULT_THRESHHOLD_FOR_PRELOADING   5
 this class starts loading more frames when it only has this many frames left in the buffer
#define DEFAULT_THRESHHOLD_FOR_PRELOADING_ON_THREAD   20
 this class starts loading more frames when it only has this many frames left in the buffer if it is loading the frames on a thread

Define Documentation

#define DEFAULT_FRAME_LOAD_CHUNK_SIZE   5

this defines how many frames should be loaded before the thread yields. the current value is arbitrary, and needs to be refined.

Definition at line 17 of file BufferedSDIFFileReader.hxx.

Referenced by CLAM::BufferedSDIFFileReader::BufferedSDIFFileReader().

#define DEFAULT_INITIAL_NUMBER_OF_FRAMES_TO_BUFFER   50

this defines how many frames will be preloaded when this object is first created. if you're creating a lot of objects for a lot of SDIF files, you shouldn't make this too large

Definition at line 14 of file BufferedSDIFFileReader.hxx.

#define DEFAULT_THRESHHOLD_FOR_PRELOADING   5

this class starts loading more frames when it only has this many frames left in the buffer

Definition at line 20 of file BufferedSDIFFileReader.hxx.

Referenced by CLAM::BufferedSDIFFileReader::BufferedSDIFFileReader().

#define DEFAULT_THRESHHOLD_FOR_PRELOADING_ON_THREAD   20

this class starts loading more frames when it only has this many frames left in the buffer if it is loading the frames on a thread

Definition at line 23 of file BufferedSDIFFileReader.hxx.

Referenced by CLAM::BufferedSDIFFileReader::BufferedSDIFFileReader().

Generated by  doxygen 1.6.3