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:
parent
c3b032a45a
commit
0ecb47e9cb
3871 changed files with 91080 additions and 1640063 deletions
56
port/external/openal/oalImp.h
vendored
Normal file
56
port/external/openal/oalImp.h
vendored
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
// Declarations of pflib/external/openal/oalImp.h (Apple OpenAL, Playground SDK 4.0): the implementation-wide
|
||||
// helpers of oalImp.cpp that the OpenAL classes call. oalImp.cpp (the al* / alc* C API, these helpers and the
|
||||
// map globals) is ported in oalImp.cpp; the helpers below are its callers' declarations.
|
||||
//
|
||||
// Game code of the declared helpers: Get3DMixerVersion @0x000f8b9c, WaitOneRenderCycle @0x000f917a,
|
||||
// GetBufferObjectFromToken @0x000f9f8e, alSetError(int) (__Z10alSetErrori), ReconfigureContextsOfThisDevice
|
||||
// (__Z31ReconfigureContextsOfThisDevicem).
|
||||
//
|
||||
// The mixer version and Mac OS X extension constants have no DWARF (they are enums / #defines of Apple's sources,
|
||||
// MacOSX_OALExtensions.h for the 'rq..' / 'rc..' tokens); the names are Apple's, the values are the ones the game
|
||||
// compares with.
|
||||
|
||||
#ifndef OALIMP_H_INCLUDED
|
||||
#define OALIMP_H_INCLUDED
|
||||
|
||||
#include "oal_sysdecls.h"
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
class OALBuffer;
|
||||
|
||||
// Get3DMixerVersion() results
|
||||
enum
|
||||
{
|
||||
kUnknown3DMixerVersion = 0,
|
||||
kUnsupported3DMixer = 1,
|
||||
k3DMixerVersion_1_3 = 13,
|
||||
k3DMixerVersion_2_0 = 14,
|
||||
k3DMixerVersion_2_1 = 15,
|
||||
k3DMixerVersion_2_2 = 16,
|
||||
k3DMixerVersion_2_3 = 17
|
||||
};
|
||||
|
||||
// Mac OS X OpenAL extension tokens (MacOSX_OALExtensions.h)
|
||||
#define ALC_MAC_OSX_SPATIAL_RENDERING_QUALITY_HIGH 'rqhi'
|
||||
#define ALC_MAC_OSX_SPATIAL_RENDERING_QUALITY_LOW 'rdlo'
|
||||
#define ALC_MAC_OSX_RENDER_CHANNEL_COUNT_STEREO 'rcst'
|
||||
#define ALC_MAC_OSX_RENDER_CHANNEL_COUNT_MULTICHANNEL 'rcmc'
|
||||
|
||||
// AL_EXT_float32 formats
|
||||
#define AL_FORMAT_MONO_FLOAT32 0x10010
|
||||
#define AL_FORMAT_STEREO_FLOAT32 0x10011
|
||||
|
||||
// Limits and defaults of oalImp.cpp (same #defines as the SDK's oalImp.h)
|
||||
#define AL_MAXBUFFERS 1024
|
||||
#define AL_MAXSOURCES 256
|
||||
|
||||
#define kDefaultMaximumMixerBusCount 64
|
||||
|
||||
UInt32 Get3DMixerVersion();
|
||||
void WaitOneRenderCycle();
|
||||
void ReconfigureContextsOfThisDevice(uintptr_t inDeviceToken);
|
||||
void alSetError(ALenum errorCode);
|
||||
OALBuffer* GetBufferObjectFromToken(ALuint inBID);
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue