[Scummvm-cvs-logs] SF.net SVN: scummvm: [20569] scummvm/trunk/backends/PalmOS/Src/snd_stream.cpp
chrilith at users.sourceforge.net
chrilith at users.sourceforge.net
Sat Feb 11 10:48:00 CET 2006
Revision: 20569
Author: chrilith
Date: 2006-02-11 10:47:23 -0800 (Sat, 11 Feb 2006)
ViewCVS: http://svn.sourceforge.net/scummvm?rev=20569&view=rev
Log Message:
-----------
No more required
Removed Paths:
-------------
scummvm/trunk/backends/PalmOS/Src/snd_stream.cpp
Deleted: scummvm/trunk/backends/PalmOS/Src/snd_stream.cpp
===================================================================
--- scummvm/trunk/backends/PalmOS/Src/snd_stream.cpp 2006-02-11 18:45:00 UTC (rev 20568)
+++ scummvm/trunk/backends/PalmOS/Src/snd_stream.cpp 2006-02-11 18:47:23 UTC (rev 20569)
@@ -1,28 +0,0 @@
-#include "common/stdafx.h"
-#include "palm.h"
-
-Err sndCallback(void* UserDataP, SndStreamRef stream, void* bufferP, UInt32 *bufferSizeP) {
- SoundDataType *snd = (SoundDataType *)UserDataP;
- UInt32 size = *bufferSizeP;
-
- if (snd->set && snd->size) {
- UInt32 *dst = (UInt32 *)bufferP;
- UInt32 *src = (UInt32 *)snd->dataP;
-
- size = (snd->size / 16);
- while (size--) {
- *dst++ = READ_LE_UINT32(src++);
- *dst++ = READ_LE_UINT32(src++);
- *dst++ = READ_LE_UINT32(src++);
- *dst++ = READ_LE_UINT32(src++);
- }
- snd->set = false;
-
- } else {
- snd->size = size;
- MemSet(bufferP, 128, 0);
- *bufferSizeP = 128;
- }
-
- return errNone;
-}
More information about the Scummvm-git-logs
mailing list