Removed unsuccessful attempt to fix sndfile unaligned access

This reverts commit 8a36bf5c09.
This commit is contained in:
alexey.lysiuk 2017-05-02 10:19:16 +03:00
parent aac6e65842
commit f73f42c4a6
1 changed files with 1 additions and 4 deletions

View File

@ -163,10 +163,7 @@ size_t SndFileDecoder::read(char *buffer, size_t bytes)
while(total < frames)
{
size_t todo = MIN<size_t>(frames-total, 64/SndInfo.channels);
// libsndfile uses SSE optimization on Intel platform
// This requires proper read buffer alignment
alignas(16) float tmp[64];
float tmp[64];
size_t got = (size_t)sf_readf_float(SndFile, tmp, todo);
if(got < todo) frames = total + got;