mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-20 04:09:16 +00:00
Convert custom HeadSpin integer types to standard types from stdint.h
This commit is contained in:
@ -51,21 +51,21 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
#include <string.h>
|
||||
|
||||
|
||||
plSoundDeswizzler::plSoundDeswizzler( void *srcPtr, UInt32 srcLength, UInt8 numChannels, UInt32 sampleSize )
|
||||
plSoundDeswizzler::plSoundDeswizzler( void *srcPtr, uint32_t srcLength, uint8_t numChannels, uint32_t sampleSize )
|
||||
{
|
||||
fNumSamples = srcLength / sampleSize;
|
||||
fSampleSize = sampleSize;
|
||||
fStride = fSampleSize * numChannels;
|
||||
fData = (UInt8 *)srcPtr;
|
||||
fData = (uint8_t *)srcPtr;
|
||||
fOwnsData = false;
|
||||
}
|
||||
|
||||
plSoundDeswizzler::plSoundDeswizzler( UInt32 srcLength, UInt8 numChannels, UInt32 sampleSize )
|
||||
plSoundDeswizzler::plSoundDeswizzler( uint32_t srcLength, uint8_t numChannels, uint32_t sampleSize )
|
||||
{
|
||||
fNumSamples = srcLength / sampleSize;
|
||||
fSampleSize = sampleSize;
|
||||
fStride = fSampleSize * numChannels;
|
||||
fData = TRACKED_NEW UInt8[ srcLength ];
|
||||
fData = TRACKED_NEW uint8_t[ srcLength ];
|
||||
fOwnsData = true;
|
||||
}
|
||||
|
||||
@ -75,11 +75,11 @@ plSoundDeswizzler::~plSoundDeswizzler()
|
||||
delete [] fData;
|
||||
}
|
||||
|
||||
void plSoundDeswizzler::Extract( UInt8 channelSelect, void *dest, UInt32 numBytesToProcess )
|
||||
void plSoundDeswizzler::Extract( uint8_t channelSelect, void *dest, uint32_t numBytesToProcess )
|
||||
{
|
||||
UInt8 *srcPtr = fData + channelSelect * fSampleSize;
|
||||
UInt8 *destPtr = (UInt8 *)dest;
|
||||
UInt32 i;
|
||||
uint8_t *srcPtr = fData + channelSelect * fSampleSize;
|
||||
uint8_t *destPtr = (uint8_t *)dest;
|
||||
uint32_t i;
|
||||
|
||||
|
||||
if( numBytesToProcess == 0 )
|
||||
|
Reference in New Issue
Block a user