/* Audio sample is ADC value scaled to fit the entire range */\r
int16_t AudioSample = ((SAMPLE_MAX_RANGE / ADC_MAX_RANGE) * ADC_GetResult());\r
\r
/* Audio sample is ADC value scaled to fit the entire range */\r
int16_t AudioSample = ((SAMPLE_MAX_RANGE / ADC_MAX_RANGE) * ADC_GetResult());\r
\r
/* Microphone is biased to half rail voltage, subtract the bias from the sample value */\r
AudioSample -= (SAMPLE_MAX_RANGE / 2));\r
/* Microphone is biased to half rail voltage, subtract the bias from the sample value */\r
AudioSample -= (SAMPLE_MAX_RANGE / 2));\r
\r
Audio_Device_WriteSample16(&Microphone_Audio_Interface, AudioSample);\r
}\r
}\r
\r
/** Event handler for the library USB Connection event. */\r
\r
Audio_Device_WriteSample16(&Microphone_Audio_Interface, AudioSample);\r
}\r
}\r
\r
/** Event handler for the library USB Connection event. */\r
-/** Event handler for the library USB Unhandled Control Packet event. */\r
-void EVENT_USB_UnhandledControlPacket(void)\r
+/** Event handler for the library USB Unhandled Control Request event. */\r
+void EVENT_USB_Device_UnhandledControlRequest(void)\r