diff options
author | Chris Robinson <[email protected]> | 2012-02-15 21:47:35 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2012-02-15 21:47:35 -0800 |
commit | 60785eab8e7c893b652ca8ebfa031a70588c6683 (patch) | |
tree | 02cc9a3cbcb2303cf0ef52119934977e50994527 /Alc/backends | |
parent | 7e9af6f406a5f010435d04db2828c083f36ea673 (diff) |
Move the endian test macro to alMain.h
Diffstat (limited to 'Alc/backends')
-rw-r--r-- | Alc/backends/wave.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/Alc/backends/wave.c b/Alc/backends/wave.c index 568091c8..f5c14174 100644 --- a/Alc/backends/wave.c +++ b/Alc/backends/wave.c @@ -87,14 +87,9 @@ static ALuint WaveProc(ALvoid *ptr) ALuint now, start; ALuint64 avail, done; size_t fs; - union { - short s; - char b[sizeof(short)]; - } uSB; const ALuint restTime = (ALuint64)pDevice->UpdateSize * 1000 / pDevice->Frequency / 2; - uSB.s = 1; frameSize = FrameSizeFromDevFmt(pDevice->FmtChans, pDevice->FmtType); done = 0; @@ -122,7 +117,7 @@ static ALuint WaveProc(ALvoid *ptr) aluMixData(pDevice, data->buffer, pDevice->UpdateSize); done += pDevice->UpdateSize; - if(uSB.b[0] != 1) + if(!IS_LITTLE_ENDIAN) { ALuint bytesize = BytesFromDevFmt(pDevice->FmtType); ALubyte *bytes = data->buffer; |