2
3
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-15 10:54:18 +00:00

Fix Endian functions names in hsTypes and hsStream.

Function and macro names for endianness were previously vague,
and on big-endian systems entirely misleading.  The names are
now properly descriptive of what they actually do.
This commit is contained in:
2011-10-23 14:01:54 -07:00
committed by Darryl Pogue
parent ab37a4a486
commit e462ef04b3
255 changed files with 2676 additions and 2676 deletions

View File

@ -223,16 +223,16 @@ void plSoundBuffer::Read( hsStream *s, hsResMgr *mgr )
{
hsKeyedObject::Read( s, mgr );
s->ReadSwap( &fFlags );
s->ReadSwap( &fDataLength );
s->ReadLE( &fFlags );
s->ReadLE( &fDataLength );
fFileName = s->ReadSafeString();
s->ReadSwap( &fHeader.fFormatTag );
s->ReadSwap( &fHeader.fNumChannels );
s->ReadSwap( &fHeader.fNumSamplesPerSec );
s->ReadSwap( &fHeader.fAvgBytesPerSec );
s->ReadSwap( &fHeader.fBlockAlign );
s->ReadSwap( &fHeader.fBitsPerSample );
s->ReadLE( &fHeader.fFormatTag );
s->ReadLE( &fHeader.fNumChannels );
s->ReadLE( &fHeader.fNumSamplesPerSec );
s->ReadLE( &fHeader.fAvgBytesPerSec );
s->ReadLE( &fHeader.fBlockAlign );
s->ReadLE( &fHeader.fBitsPerSample );
fValid = false;
if( !( fFlags & kIsExternal ) )
@ -262,8 +262,8 @@ void plSoundBuffer::Write( hsStream *s, hsResMgr *mgr )
if( fData == nil )
fFlags |= kIsExternal;
s->WriteSwap( fFlags );
s->WriteSwap( fDataLength );
s->WriteLE( fFlags );
s->WriteLE( fDataLength );
// Truncate the path to just a file name on write
if( fFileName != nil )
@ -277,12 +277,12 @@ void plSoundBuffer::Write( hsStream *s, hsResMgr *mgr )
else
s->WriteSafeString( nil );
s->WriteSwap( fHeader.fFormatTag );
s->WriteSwap( fHeader.fNumChannels );
s->WriteSwap( fHeader.fNumSamplesPerSec );
s->WriteSwap( fHeader.fAvgBytesPerSec );
s->WriteSwap( fHeader.fBlockAlign );
s->WriteSwap( fHeader.fBitsPerSample );
s->WriteLE( fHeader.fFormatTag );
s->WriteLE( fHeader.fNumChannels );
s->WriteLE( fHeader.fNumSamplesPerSec );
s->WriteLE( fHeader.fAvgBytesPerSec );
s->WriteLE( fHeader.fBlockAlign );
s->WriteLE( fHeader.fBitsPerSample );
if( !( fFlags & kIsExternal ) )
s->Write( fDataLength, fData );