20 #ifndef SOUND_EMBEDSOUNDINST_H 21 #define SOUND_EMBEDSOUNDINST_H 66 unsigned int inPoint,
unsigned int outPoint,
70 virtual bool eof()
const;
79 virtual size_t checkEarlierEnd(
size_t bytesAhead,
size_t pos)
const {
80 if (_outPoint < std::numeric_limits<unsigned long>::max()) {
81 const size_t toCustomEnd = _outPoint - pos;
82 return std::min(toCustomEnd, bytesAhead);
87 virtual bool moreData();
107 void applyEnvelopes(std::int16_t* samples,
unsigned int nSamples,
110 bool reachedCustomEnd()
const;
113 virtual bool decodingCompleted()
const {
114 return (decodingPosition >= _soundDef.size());
120 virtual void decodeNextBlock();
123 unsigned long decodingPosition;
131 const unsigned long _outPoint;
138 std::uint32_t current_env;
153 #endif // SOUND_EMBEDSOUNDINST_H Definition of an embedded sound.
Definition: EmbedSound.h:49
Instance of a defined sound (LiveSoundData)
Definition: LiveSound.h:46
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:40
std::vector< SoundEnvelope > SoundEnvelopes
A vector of SoundEnvelope objects.
Definition: SoundEnvelope.h:60
Instance of a defined sound (EmbedSound)
Definition: EmbedSoundInst.h:45