PokittoLib is the library needed for programming the Pokitto DIY game console (www.pokitto.com)
Diff: POKITTO_LIBS/Synth/Synth_mixfuncs.cpp
- Revision:
- 17:10609a82d462
- Parent:
- 6:72f87b7c7400
diff -r 6c352e63d59e -r 10609a82d462 POKITTO_LIBS/Synth/Synth_mixfuncs.cpp --- a/POKITTO_LIBS/Synth/Synth_mixfuncs.cpp Fri Oct 20 19:08:39 2017 +0000 +++ b/POKITTO_LIBS/Synth/Synth_mixfuncs.cpp Sat Oct 21 17:22:35 2017 +0000 @@ -62,7 +62,7 @@ osc1.output = soundbyte; #else //OCR2B = osc1.output>>8; - #if POK_ENABLE_SOUND > 1 + #if POK_ENABLE_SOUND > 0 soundbyte = (((osc1.output>>8) * (osc1.adsrvol >>8 )) >> 8) >> osc1.echodiv; // To output, shift back to 8-bit if (osc1.overdrive) soundbyte *= OVERDRIVE; if (osc1.kick ) soundbyte >>= 2; @@ -83,7 +83,7 @@ osc2.output = soundbyte; #else //OCR2B = osc2.output>>8; - #if POK_ENABLE_SOUND > 1 + #if POK_ENABLE_SOUND > 0 soundbyte = (((osc2.output>>8) * (osc2.adsrvol >>8 )) >> 8) >> osc2.echodiv; if (osc2.overdrive) soundbyte *= OVERDRIVE; if (osc2.kick ) soundbyte >>= 2; @@ -104,7 +104,7 @@ osc3.output = soundbyte; #else //OCR2B = osc3.output>>8; - #if POK_ENABLE_SOUND > 1 + #if POK_ENABLE_SOUND > 0 soundbyte = (((osc3.output>>8) * (osc3.adsrvol >>8 )) >> 8) >> osc3.echodiv; if (osc3.overdrive) soundbyte *= OVERDRIVE; if (osc3.kick ) soundbyte >>= 2;