aboutsummaryrefslogtreecommitdiff
path: root/backends/PalmOS/Src/snd_stream.cpp
diff options
context:
space:
mode:
authorChris Apers2004-09-12 12:53:47 +0000
committerChris Apers2004-09-12 12:53:47 +0000
commit1f8f4c0ea37218f3156b840f9abb97642e3bc346 (patch)
treee2b7c8089c63979c18d5f512cde4aee40ba73894 /backends/PalmOS/Src/snd_stream.cpp
parent11f1ccf43a399d24412f13df9fe4101982c2b0dc (diff)
downloadscummvm-rg350-1f8f4c0ea37218f3156b840f9abb97642e3bc346.tar.gz
scummvm-rg350-1f8f4c0ea37218f3156b840f9abb97642e3bc346.tar.bz2
scummvm-rg350-1f8f4c0ea37218f3156b840f9abb97642e3bc346.zip
Removed obsolete code
svn-id: r15044
Diffstat (limited to 'backends/PalmOS/Src/snd_stream.cpp')
-rw-r--r--backends/PalmOS/Src/snd_stream.cpp32
1 files changed, 5 insertions, 27 deletions
diff --git a/backends/PalmOS/Src/snd_stream.cpp b/backends/PalmOS/Src/snd_stream.cpp
index ae4d3f8020..43e9333e8f 100644
--- a/backends/PalmOS/Src/snd_stream.cpp
+++ b/backends/PalmOS/Src/snd_stream.cpp
@@ -1,30 +1,13 @@
-#ifndef COMPILE_STREAMSND
-# include "stdafx.h"
-# include "palm.h"
-#else
-# include "ARMNative.h"
-# include <endianutils.h>
-#endif
-
-#ifndef ByteSwap32
-#define ByteSwap32(x) x
-#else
-#define READ_LE_UINT32(x) *x
-#endif
+#include "stdafx.h"
+#include "palm.h"
Err sndCallback(void* UserDataP, SndStreamRef stream, void* bufferP, UInt32 *bufferSizeP) {
SoundDataType *snd = (SoundDataType *)UserDataP;
UInt32 size = *bufferSizeP;
-#ifdef COMPILE_STREAMSND
- // endian
- snd->set = ByteSwap32(snd->set);
- snd->size = ByteSwap32(snd->size);
-#endif
-
if (snd->set && snd->size) {
UInt32 *dst = (UInt32 *)bufferP;
- UInt32 *src = (UInt32 *)ByteSwap32(snd->dataP);
+ UInt32 *src = (UInt32 *)snd->dataP;
size = (snd->size / 16);
while (size--) {
@@ -37,14 +20,9 @@ Err sndCallback(void* UserDataP, SndStreamRef stream, void* bufferP, UInt32 *buf
} else {
snd->size = size;
- MemSet(bufferP, size, 0);
+ MemSet(bufferP, 128, 0);
+ *bufferSizeP = 128;
}
-#ifdef COMPILE_STREAMSND
- // endian
- snd->set = ByteSwap32(snd->set);
- snd->size = ByteSwap32(snd->size);
-#endif
-
return errNone;
} \ No newline at end of file