mirror of
https://github.com/vgmstream/vgmstream.git
synced 2024-12-01 01:27:20 +01:00
Ensure that Ogg Vorbis output is in host endian
This commit is contained in:
parent
f6367fb0a8
commit
346d18cce4
@ -17,6 +17,8 @@ void decode_ogg_vorbis(ogg_vorbis_codec_data * data, sample * outbuf, int32_t sa
|
||||
if (rc > 0) samples_done += rc/sizeof(sample)/channels;
|
||||
else return;
|
||||
} while (samples_done < samples_to_do);
|
||||
|
||||
swap_samples_le(outbuf, samples_to_do*channels);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user