Skip to content

Commit

Permalink
SCI32: Remove VMD flags from Audio32 mixer
Browse files Browse the repository at this point in the history
The VMD decoder sends audio directly to the system mixer.
  • Loading branch information
csnover committed Aug 6, 2016
1 parent 6a7ddd8 commit 949919b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
6 changes: 0 additions & 6 deletions engines/sci/sound/audio32.cpp
Expand Up @@ -309,11 +309,6 @@ int Audio32::readBuffer(Audio::st_sample_t *buffer, const int numSamples) {
continue;
}

if (channel.vmd) {
// TODO: VMD audio into output buffer
continue;
}

Audio::st_volume_t leftVolume, rightVolume;

if (channel.pan == -1 || !isStereo()) {
Expand Down Expand Up @@ -605,7 +600,6 @@ uint16 Audio32::play(int16 channelIndex, const ResourceId resourceId, const bool
channel.resource = resource;
channel.loop = loop;
channel.robot = false;
channel.vmd = false;
channel.fadeStartTick = 0;
channel.soundNode = soundNode;
channel.volume = volume < 0 || volume > kMaxVolume ? (int)kMaxVolume : volume;
Expand Down
6 changes: 0 additions & 6 deletions engines/sci/sound/audio32.h
Expand Up @@ -122,12 +122,6 @@ struct AudioChannel {
*/
bool robot;

/**
* Whether or not this channel contains a VMD audio
* track.
*/
bool vmd;

/**
* For digital sound effects, the related VM
* Sound::nodePtr object for the sound.
Expand Down

0 comments on commit 949919b

Please sign in to comment.