im having as topics says that problem, my trgnl emulation in some games trough me whistles. its ok for christmas, but not for accuracy.
I want to know if the following is right, can somebody help me?:
if ((triangleLinearCounter != 0) && (triangleLenCounter != 0))
{
ClockStepGenerator(); //this clock step generator and feeds the trngl DAC
}
else
FeedDAC(CHANNEL_TRIANGLE, 0); //else.. feed dac with "0"
Is that "else" well?
I want to know if the following is right, can somebody help me?:
Code:
if ((triangleLinearCounter != 0) && (triangleLenCounter != 0))
{
ClockStepGenerator(); //this clock step generator and feeds the trngl DAC
}
else
FeedDAC(CHANNEL_TRIANGLE, 0); //else.. feed dac with "0"
Is that "else" well?