mirror of
https://github.com/vgmstream/vgmstream.git
synced 2025-01-17 23:36:41 +01:00
Merge pull request #14 from libertyernie/ogg_vorbis_endian
Ensure that Ogg Vorbis output is in host endian
This commit is contained in:
commit
d84b7704ed
@ -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…
x
Reference in New Issue
Block a user