1:1 source port of the engine and game code; Windows build and system layer; docs. No game files or SDK headers.

This commit is contained in:
CRTkafa 2026-10-22 16:30:40 +08:00
parent c3b032a45a
commit 0ecb47e9cb
3871 changed files with 91080 additions and 1640063 deletions

23
port/external/openal/oalOSX.h vendored Normal file
View file

@ -0,0 +1,23 @@
// Port of pflib/external/openal/oalOSX.h (Apple OpenAL, Playground SDK 4.0): the Mac OS X helper functions of
// oalOSX.cpp. Only the six helpers the OpenAL classes need are declared here (ported in oalOSX.cpp); the rest of
// oalOSX.cpp (IsRelativePath, MakeAbsolutePath, GetOALFormatFromASBD, the Get*String helpers,
// IsValidRenderQuality, GetDefaultDeviceName, OALRingBuffer, the alut* functions) is not part of this port slice.
#ifndef OALOSX_H_INCLUDED
#define OALOSX_H_INCLUDED
#include "oal_sysdecls.h"
#include <stdint.h>
class CAStreamBasicDescription;
class OALRingBuffer;
uintptr_t GetNewPtrToken(void);
ALuint GetNewToken(void);
bool IsFormatSupported(UInt32 inFormatID);
OSStatus FillInASBD(CAStreamBasicDescription& inASBD, UInt32 inFormatID, UInt32 inSampleRate);
UInt32 CalculateNeededMixerBusses(const ALCint* attrList, UInt32 inDefaultBusCount);
UInt32 GetDesiredRenderChannelsFor3DMixer(UInt32 inDeviceChannels);
#endif