25 #include "audio/audiostream.h" 26 #include "audio/mixer.h" 27 #include "common/scummsys.h" 28 #include "common/types.h" 29 #include "twine/shared.h" 35 #define NUM_CHANNELS 32 48 WalkFloorRightBegin = 141
58 int32 getSampleChannel(int32 index);
64 int32 samplesPlayingActors[NUM_CHANNELS]{0};
68 bool isChannelPlaying(int32 channel);
71 int32 getFreeSampleChannelIndex();
74 void removeSampleChannel(int32 index);
85 void playFlaSample(int32 index, int32 repeat, uint8 balance, int32 volumeLeft, int32 volumeRight);
88 void setSamplePosition(int32 channelIdx, int32 x, int32 y, int32 z);
90 inline void setSamplePosition(int32 channelIdx,
const IVec3 &pos) {
91 setSamplePosition(channelIdx, pos.x, pos.y, pos.z);
103 void playSample(int32 index, int32 repeat = 1, int32 x = 128, int32 y = 128, int32 z = 128, int32 actorIdx = -1);
104 void playSample(int32 index, int32 repeat,
const IVec3 &pos, int32 actorIdx = -1) {
105 playSample(index, repeat, pos.x, pos.y, pos.z, actorIdx);
112 void resumeSamples();
114 void startRainSample();
120 int32 getActorChannel(int32 index);
123 void stopSample(int32 index);
126 int32 isSamplePlaying(int32 index);
129 bool playVoxSample(
const TextEntry *text);
Definition: audiostream.h:212
SoundType
Definition: mixer.h:62
Definition: achievements_tables.h:27