From 1f8f4c0ea37218f3156b840f9abb97642e3bc346 Mon Sep 17 00:00:00 2001 From: Chris Apers Date: Sun, 12 Sep 2004 12:53:47 +0000 Subject: Removed obsolete code svn-id: r15044 --- backends/PalmOS/Src/snd_stream.cpp | 32 +++++--------------------------- 1 file changed, 5 insertions(+), 27 deletions(-) (limited to 'backends') 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 -#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 -- cgit v1.2.3