- Add a hack for the signal out so that, when the PIT gate is off, no callback is called. This should be improved so that also no Out state is set, and other things too.
- Really set the out signal when the flipflop changes, in square-wave mode. Contributes to fix the speaker (see next commit).
svn path=/trunk/; revision=64344
Channel->Out = State;
/* Call the callback */
+ if (!Channel->Gate) return; // HACK: This is a HACK until gates are properly used (needed for the speaker to work properly).
if (Channel->OutFunction) Channel->OutFunction(Channel->OutParam, State);
}
if (ReloadCount & 1)
{
Channel->FlipFlop = !Channel->FlipFlop;
- // PitSetOut(Channel, !Channel->Out);
+ PitSetOut(Channel, !Channel->Out);
}
/* Was there any rising edge? */