winzik/engine/stubs/openal.stub.php
David Nurdin 7ce84c932f OpenGL + OpenAL: PHP-OpenGL / PHP-OpenAL (Ponup) in every runtime
- docker/ext/php-opengl.patch: framebuffers, glGetIntegerv/Floatv, uniforms,
  binary strings, non-fatal shader errors, glDelete*, WebGL guards
- desktop, desktop-async and the WebAssembly engine build both extensions
  (WebGL 1 / Web Audio in the browser)
- engine: OpenGl (raw gl* in SDL's context, begin/end, resources), WebGl
  rewritten on top of it (jumphp-gl.js removed), Audio3d (positional sound)
- headless test/shot run GL games on Xvfb (jumphp-xvfb), JUMPHP_GL
- stubs for phpstan (tools/gl-stubs.php)
- hello-webgl: RawGlScene (raw gl* + 3D beep); jumpball: mediump-safe post
- docs: AGENTS.md, api-web, build, READMEs

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-28 16:44:36 +01:00

81 lines
2.4 KiB
PHP

<?php
// Generated by tools/gl-stubs.php from the openal extension (Ponup/php-openal): signatures for phpstan / IDEs.
const ALC_FREQUENCY = 4103;
const ALC_REFRESH = 4104;
const ALC_SYNC = 4105;
const AL_FREQUENCY = 8193;
const AL_BITS = 8194;
const AL_CHANNELS = 8195;
const AL_SIZE = 8196;
const AL_BUFFER = 4105;
const AL_SOURCE_RELATIVE = 514;
const AL_SOURCE_STATE = 4112;
const AL_PITCH = 4099;
const AL_GAIN = 4106;
const AL_MIN_GAIN = 4109;
const AL_MAX_GAIN = 4110;
const AL_MAX_DISTANCE = 4131;
const AL_ROLLOFF_FACTOR = 4129;
const AL_CONE_OUTER_GAIN = 4130;
const AL_CONE_INNER_ANGLE = 4097;
const AL_CONE_OUTER_ANGLE = 4098;
const AL_REFERENCE_DISTANCE = 4128;
const AL_POSITION = 4100;
const AL_VELOCITY = 4102;
const AL_DIRECTION = 4101;
const AL_ORIENTATION = 4111;
const AL_FORMAT_MONO8 = 4352;
const AL_FORMAT_MONO16 = 4353;
const AL_FORMAT_STEREO8 = 4354;
const AL_FORMAT_STEREO16 = 4355;
const AL_INITIAL = 4113;
const AL_PLAYING = 4114;
const AL_PAUSED = 4115;
const AL_STOPPED = 4116;
const AL_TRUE = 1;
const AL_FALSE = 0;
const AL_LOOPING = 4103;
/** @return mixed */
function openal_buffer_create() {}
/** @return mixed */
function openal_buffer_data($buffer, $format, $data, $freq) {}
/** @return mixed */
function openal_buffer_destroy($buffer) {}
/** @return mixed */
function openal_buffer_get($buffer, $property) {}
/** @return mixed */
function openal_context_create($device) {}
/** @return mixed */
function openal_context_current($context) {}
/** @return mixed */
function openal_context_destroy($context) {}
/** @return mixed */
function openal_context_process($context) {}
/** @return mixed */
function openal_context_suspend($context) {}
/** @return mixed */
function openal_device_close($device) {}
/** @return mixed */
function openal_device_open($device_desc = null) {}
/** @return mixed */
function openal_listener_get($property) {}
/** @return mixed */
function openal_listener_set($property, $setting = null) {}
/** @return mixed */
function openal_source_create() {}
/** @return mixed */
function openal_source_destroy($source) {}
/** @return mixed */
function openal_source_get($source, $property) {}
/** @return mixed */
function openal_source_pause($source) {}
/** @return mixed */
function openal_source_play($source) {}
/** @return mixed */
function openal_source_rewind($source) {}
/** @return mixed */
function openal_source_set($source, $property, $setting) {}
/** @return mixed */
function openal_source_stop($source) {}