Ensure that Ogg Vorbis output is in host endian

This commit is contained in:
libertyernie 2015-05-13 13:11:24 -05:00
parent f6367fb0a8
commit 346d18cce4

View File

@ -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