diff options
author | Jochen Hoenicke | 2004-03-05 14:35:16 +0000 |
---|---|---|
committer | Jochen Hoenicke | 2004-03-05 14:35:16 +0000 |
commit | e609820a5b53fcd228377ae5d6813e56a1afdebb (patch) | |
tree | 73ff5f5b132b335271fab5a87cba0b1bc9f2799e | |
parent | 270c5cec520c9fc8243ea9cdd79330306e276092 (diff) | |
download | scummvm-rg350-e609820a5b53fcd228377ae5d6813e56a1afdebb.tar.gz scummvm-rg350-e609820a5b53fcd228377ae5d6813e56a1afdebb.tar.bz2 scummvm-rg350-e609820a5b53fcd228377ae5d6813e56a1afdebb.zip |
Clear all channel variables in clear_channel
svn-id: r13203
-rw-r--r-- | scumm/player_v2.cpp | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/scumm/player_v2.cpp b/scumm/player_v2.cpp index 4099a33383..f9940086e2 100644 --- a/scumm/player_v2.cpp +++ b/scumm/player_v2.cpp @@ -543,24 +543,7 @@ void Player_V2::premix_proc(void *param, int16 *buf, uint len) { void Player_V2::clear_channel(int i) { ChannelInfo *channel = &_channels[i]; - channel->d.time_left = 0; - channel->d.next_cmd = 0; - channel->d.base_freq = 0; - channel->d.freq_delta = 0; - channel->d.freq = 0; - channel->d.volume = 0; - channel->d.volume_delta = 0; - channel->d.inter_note_pause = 0; - channel->d.transpose = 0; - channel->d.hull_curve = 0; - channel->d.hull_offset = 0; - channel->d.hull_counter = 0; - channel->d.freqmod_table = 0; - channel->d.freqmod_offset = 0; - channel->d.freqmod_incr = 0; - channel->d.freqmod_multiplier = 0; - channel->d.freqmod_modulo = 0; - channel->d.music_timer = 0; + memset(channel, 0, sizeof(ChannelInfo)); } int Player_V2::getMusicTimer() const { |