Fixed incorrect byte ordering in the Audio_Device_WriteSample24 function (thanks to WZab).
This commit is contained in:
parent
64fe1cd0b2
commit
b8fd4dd51c
2 changed files with 2 additions and 1 deletions
|
@ -318,8 +318,8 @@
|
|||
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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue