Change project makefiles so that the current target settings and not just the board...
[pub/USBasp.git] / Demos / Device / LowLevel / AudioOutput / AudioOutput.c
index 2b2cdcb..c814c8c 100644 (file)
@@ -210,8 +210,10 @@ void USB_Audio_Task(void)
                int8_t  LeftSample_8Bit   = (LeftSample_16Bit  >> 8);\r
                int8_t  RightSample_8Bit  = (RightSample_16Bit >> 8);\r
                        \r
+#if !defined(AUDIO_OUT_STEREO)\r
                /* Mix the two channels together to produce a mono, 8-bit sample */\r
                int8_t  MixedSample_8Bit  = (((int16_t)LeftSample_8Bit + (int16_t)RightSample_8Bit) >> 1);\r
+#endif\r
 \r
 #if defined(AUDIO_OUT_MONO)\r
                /* Load the sample into the PWM timer channel */\r