mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-13 23:43:34 +00:00
TWINE: removed unused method
This commit is contained in:
parent
dba162cae0
commit
d72a0ed1f3
@ -41,17 +41,6 @@ namespace TwinE {
|
||||
Sound::Sound(TwinEEngine *engine) : _engine(engine) {
|
||||
}
|
||||
|
||||
void Sound::sampleVolume(int32 chan, int32 volume) {
|
||||
if (chan == -1) {
|
||||
_engine->_system->getMixer()->setVolumeForSoundType(Audio::Mixer::kPlainSoundType, volume);
|
||||
return;
|
||||
}
|
||||
if (chan < 0 || chan > ARRAYSIZE(samplesPlaying)) {
|
||||
error("Given channel index is out of bounds: %i", chan);
|
||||
}
|
||||
_engine->_system->getMixer()->setChannelVolume(samplesPlaying[chan], volume / 2);
|
||||
}
|
||||
|
||||
void Sound::setSamplePosition(int32 chan, int32 x, int32 y, int32 z) {
|
||||
int32 distance;
|
||||
distance = ABS(_engine->_movements->getDistance3D(_engine->_grid->newCameraX << 9, _engine->_grid->newCameraY << 8, _engine->_grid->newCameraZ << 9, x, y, z));
|
||||
|
@ -52,12 +52,6 @@ public:
|
||||
|
||||
bool isChannelPlaying(int32 channel);
|
||||
|
||||
/**
|
||||
* Sample volume
|
||||
* @param channel sample channel
|
||||
* @param volume sample volume number
|
||||
*/
|
||||
void sampleVolume(int32 channel, int32 volume);
|
||||
|
||||
/**
|
||||
* Play FLA movie samples
|
||||
|
Loading…
x
Reference in New Issue
Block a user