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
61 int32 _samplesPlayingActors[NUM_CHANNELS]{0};
65 bool isChannelPlaying(int32 channelIdx);
68 int32 getFreeSampleChannelIndex();
71 void removeChannelWatch(int32 channelIdx);
73 int32 _parmSampleVolume = 127;
74 int32 _parmSampleDecalage = 0;
75 int32 _parmSampleFrequence = 0;
81 int32 getSampleChannel(int32 index);
88 void playFlaSample(int32 index, int16 rate, int32 repeat, uint8 volumeLeft, uint8 volumeRight);
90 void setChannelBalance(int32 channelIdx, uint8 volumeLeft, uint8 volumeRight);
92 void setChannelRate(int32 channelIdx, uint32 rate);
95 void setChannelPosition(int32 channelIdx, int32 x, int32 y, int32 z);
97 inline void setChannelPosition(int32 channelIdx,
const IVec3 &pos) {
98 setChannelPosition(channelIdx, pos.x, pos.y, pos.z);
108 void mixSample3D(int32 index, uint16 pitchbend, int32 repeat,
const IVec3 &pos, int32 actorIdx);
110 void mixSample(int32 index, uint16 pitchbend, int32 repeat, uint8 volumeLeft, uint8 volumeRight);
116 void resumeSamples();
118 void startRainSample();
124 int32 getActorChannel(int32 actorIdx);
127 void stopSample(int32 index);
130 int32 isSamplePlaying(int32 index);
133 bool playVoxSample(
const TextEntry *text);
Definition: audiostream.h:212
SoundType
Definition: mixer.h:73
Definition: achievements_tables.h:27