aboutsummaryrefslogtreecommitdiff
path: root/Demos/Device/LowLevel/AudioOutput/AudioOutput.c
diff options
context:
space:
mode:
authorDean Camera <[email protected]>2009-07-28 13:53:52 +0000
committerDean Camera <[email protected]>2009-07-28 13:53:52 +0000
commit3472af91a5c167cf243335fa32b5284a4a796e39 (patch)
tree3671f5537666af59ad340ac15f6eec435dd8b821 /Demos/Device/LowLevel/AudioOutput/AudioOutput.c
parente426463355b8516a442c01e0e6b4a574c39fc0f4 (diff)
downloadqmk_firmware-3472af91a5c167cf243335fa32b5284a4a796e39.tar.gz
qmk_firmware-3472af91a5c167cf243335fa32b5284a4a796e39.zip
Change project makefiles so that the current target settings and not just the board selection is printed during the build process.
Fix warning in AudioOutput demos when AUDIO_OUT_STEREO output mode is selected.
Diffstat (limited to 'Demos/Device/LowLevel/AudioOutput/AudioOutput.c')
-rw-r--r--Demos/Device/LowLevel/AudioOutput/AudioOutput.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Demos/Device/LowLevel/AudioOutput/AudioOutput.c b/Demos/Device/LowLevel/AudioOutput/AudioOutput.c
index 2b2cdcbbfe..c814c8ce51 100644
--- a/Demos/Device/LowLevel/AudioOutput/AudioOutput.c
+++ b/Demos/Device/LowLevel/AudioOutput/AudioOutput.c
@@ -210,8 +210,10 @@ void USB_Audio_Task(void)
int8_t LeftSample_8Bit = (LeftSample_16Bit >> 8);
int8_t RightSample_8Bit = (RightSample_16Bit >> 8);
+#if !defined(AUDIO_OUT_STEREO)
/* Mix the two channels together to produce a mono, 8-bit sample */
int8_t MixedSample_8Bit = (((int16_t)LeftSample_8Bit + (int16_t)RightSample_8Bit) >> 1);
+#endif
#if defined(AUDIO_OUT_MONO)
/* Load the sample into the PWM timer channel */