stole formatting for constructors from existing code
svn-id: r42981
This commit is contained in:
parent
a28281072d
commit
59395eb6b6
2 changed files with 18 additions and 13 deletions
|
@ -32,8 +32,8 @@
|
||||||
|
|
||||||
namespace Scumm {
|
namespace Scumm {
|
||||||
|
|
||||||
Player_V4A::Player_V4A(ScummEngine *scumm, Audio::Mixer *mixer) :
|
Player_V4A::Player_V4A(ScummEngine *scumm, Audio::Mixer *mixer)
|
||||||
_vm(scumm),
|
: _vm(scumm),
|
||||||
_mixer(mixer),
|
_mixer(mixer),
|
||||||
_tfmxMusic(_mixer->getOutputRate(), true),
|
_tfmxMusic(_mixer->getOutputRate(), true),
|
||||||
_tfmxSfx(_mixer->getOutputRate(), true),
|
_tfmxSfx(_mixer->getOutputRate(), true),
|
||||||
|
|
|
@ -48,7 +48,12 @@ const uint16 Tfmx::noteIntervalls[64] = {
|
||||||
214, 202, 191, 180 };
|
214, 202, 191, 180 };
|
||||||
|
|
||||||
Tfmx::Tfmx(int rate, bool stereo)
|
Tfmx::Tfmx(int rate, bool stereo)
|
||||||
: Paula(stereo, rate), _resource(), _resourceSample(), _playerCtx() {
|
: Paula(stereo, rate),
|
||||||
|
_resource(),
|
||||||
|
_resourceSample(),
|
||||||
|
_playerCtx(),
|
||||||
|
_deleteResource(false) {
|
||||||
|
|
||||||
_playerCtx.stopWithLastPattern = false;
|
_playerCtx.stopWithLastPattern = false;
|
||||||
|
|
||||||
for (int i = 0; i < kNumVoices; ++i)
|
for (int i = 0; i < kNumVoices; ++i)
|
||||||
|
@ -114,7 +119,7 @@ void Tfmx::interrupt() {
|
||||||
--channel.macroWait;
|
--channel.macroWait;
|
||||||
}
|
}
|
||||||
|
|
||||||
Paula::setChannelPeriod(channel.paulaChannel, channel.period);
|
Paula::setChannelPeriod(i, channel.period);
|
||||||
if (channel.macroSfxRun >= 0)
|
if (channel.macroSfxRun >= 0)
|
||||||
channel.macroSfxRun = 1;
|
channel.macroSfxRun = 1;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue