mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-03 17:33:05 +00:00
SCI: removing unneeded capacity uint from r50143
svn-id: r50147
This commit is contained in:
parent
66c286d096
commit
3c4bfa6cac
@ -47,8 +47,7 @@ SciMusic::SciMusic(SciVersion soundVersion)
|
||||
for (int i = 0; i < 16; i++)
|
||||
_usedChannel[i] = 0;
|
||||
|
||||
_queuedCommandCapacity = 1000;
|
||||
_queuedCommands.reserve(_queuedCommandCapacity);
|
||||
_queuedCommands.reserve(1000);
|
||||
}
|
||||
|
||||
SciMusic::~SciMusic() {
|
||||
@ -126,11 +125,6 @@ void SciMusic::putMidiCommandInQueue(byte status, byte firstOp, byte secondOp) {
|
||||
}
|
||||
|
||||
void SciMusic::putMidiCommandInQueue(uint32 midi) {
|
||||
if (_queuedCommands.size() == _queuedCommandCapacity) {
|
||||
// We need more space
|
||||
_queuedCommandCapacity *= 2;
|
||||
_queuedCommands.reserve(_queuedCommandCapacity);
|
||||
}
|
||||
_queuedCommands.push_back(midi);
|
||||
}
|
||||
|
||||
|
@ -225,7 +225,6 @@ private:
|
||||
byte _masterVolume;
|
||||
MusicEntry *_usedChannel[16];
|
||||
|
||||
uint _queuedCommandCapacity;
|
||||
MidiCommandQueue _queuedCommands;
|
||||
|
||||
int _driverFirstChannel;
|
||||
|
Loading…
x
Reference in New Issue
Block a user