Fixed incorrect byte ordering in the Audio_Device_WriteSample24 function (thanks...
[pub/lufa.git] / LUFA / Drivers / USB / Class / Device / Audio.h
index 85e37e1..87b91ce 100644 (file)
                        static inline void Audio_Device_WriteSample24(USB_ClassInfo_Audio_Device_t* const AudioInterfaceInfo,
                                                                      const int32_t Sample)
                        {
-                               Endpoint_Write_Byte(Sample >> 16);
                                Endpoint_Write_Word_LE(Sample);
+                               Endpoint_Write_Byte(Sample >> 16);
 
                                if (Endpoint_BytesInEndpoint() == AudioInterfaceInfo->Config.DataINEndpointSize)
                                  Endpoint_ClearIN();