22#ifndef LASTEXPRESS_SOUND_SLOT_H
23#define LASTEXPRESS_SOUND_SLOT_H
25#include "lastexpress/shared.h"
26#include "lastexpress/lastexpress.h"
27#include "lastexpress/sound/sound.h"
31class LastExpressEngine;
36#include "common/pack-start.h"
42 int32 fadeDelayCounter;
64#include "common/pack-end.h"
75 Slot(
SoundManager *soundMan,
const char *filename,
int typeFlags,
int priority);
81 void setFade(
int volume);
82 void setVol(
int volume);
83 void setTag(
int typeFlags);
84 void setType(
int typeFlags);
85 void setSub(
const char *filename);
90 bool load(
const char *filename);
96 int32 getStatusFlags();
97 void setStatusFlags(int32 flags);
98 void addStatusFlag(int32 flag);
99 void removeStatusFlag(int32 flag);
101 bool hasTag(int32 tag);
102 void assignDirectTag(int32 tag);
103 int getAssociatedCharacter();
104 void setAssociatedCharacter(
int character);
107 void setNext(
Slot *next);
110 void assignDirectVolume(
int volume);
112 void setChainedSound(
Slot *chainedSound);
115 void setSize(int32 size);
116 int32 getNumLoadedBytes();
117 void setNumLoadedBytes(int32 bytes);
118 void advanceLoadedBytesBy(int32 loadedBytes);
119 byte *getDataStart();
120 void setDataStart(
byte *dataStart);
122 void setDataEnd(
byte *dataEnd);
123 void setDataEndByte(int32 pos,
byte value);
124 void advanceDataEndBy(int32 size);
125 byte *getSoundBuffer();
126 void setSoundBuffer(
byte *bufferPtr);
127 byte *getCurrentBufferPtr();
128 void advanceCurrentBufferPtrBy(int32 size);
129 void setCurrentBufferPtr(
byte *bufferPtr);
130 byte *getCurrentDataPtr();
131 void setCurrentDataPtr(
byte *dataPtr);
132 int32 getBlockCount();
133 void setBlockCount(int32 blockCount);
134 void setDelayedStartTime(int32 time);
141 int32 _statusFlags = 0;
143 byte *_dataStart =
nullptr;
145 byte *_currentDataPtr =
nullptr;
146 byte *_soundBuffer =
nullptr;
147 byte *_currentBufferPtr =
nullptr;
148 int32 _blockCount = 0;
151 int32 _loadedBytes = 0;
152 HPF *_archive =
nullptr;
153 Slot *_chainedSound =
nullptr;
154 int32 _fadeDelayCounter = 0;
155 int32 _unusedVar = 0;
156 int32 _fadeTargetVolume = 0;
159 int32 _delayedStartTime = 0;
163 Slot *_next =
nullptr;
Definition: lastexpress.h:523
Definition: subtitle.h:36
Definition: subtitle.h:57