# clearPending
function clearPending(runtime)Report whether clear pending.
| Parameter | Type | Default | Description |
|---|---|---|---|
runtime | dynamic | — | runtime value consumed by this operation. |
src/miniquake2/server/sound_events.mlProvides miniquake2 server sound events facilities for this project.
miniquake2/protocol/constants.ml as ssepc → src/miniquake2/protocol/constants.mlminiquake2/qcommon/byteio.ml as ssebio → src/miniquake2/qcommon/byteio.mlminiquake2/qcommon/constants.ml as sseqc → src/miniquake2/qcommon/constants.mlminiquake2/qcommon/message.ml as sseqmsg → src/miniquake2/qcommon/message.mlminiquake2/qcommon/sizebuf.ml as sseqsz → src/miniquake2/qcommon/sizebuf.mlminiquake2/qcommon/types.ml as sseqtypes → src/miniquake2/qcommon/types.mlminiquake2/server/game_messages.ml as ssemessages → src/miniquake2/server/game_messages.mlminiquake2/server/types.ml as ssetypes → src/miniquake2/server/types.mlfunction clearPending(runtime)Report whether clear pending.
| Parameter | Type | Default | Description |
|---|---|---|---|
runtime | dynamic | — | runtime value consumed by this operation. |
function copiedPosition(position)Return the copied position.
| Parameter | Type | Default | Description |
|---|---|---|---|
position | dynamic | — | position value consumed by this operation. |
function encode(event)Encodes encode for the miniquake2 server sound events workflow.
| Parameter | Type | Default | Description |
|---|---|---|---|
event | dynamic | — | event value consumed by this operation. |
function encodeAll(events)Encode all.
| Parameter | Type | Default | Description |
|---|---|---|---|
events | dynamic | — | events value consumed by this operation. |
function enqueue(runtime, position, routingPosition, entity, channelFlags, soundIndex, volume, attenuation, timeOffset)Return the enqueue value.
| Parameter | Type | Default | Description |
|---|---|---|---|
runtime | dynamic | — | runtime value consumed by this operation. |
position | dynamic | — | position value consumed by this operation. |
routingPosition | dynamic | — | routingPosition value consumed by this operation. |
entity | dynamic | — | entity value consumed by this operation. |
channelFlags | dynamic | — | channelFlags value consumed by this operation. |
soundIndex | dynamic | — | Zero-based index of sound. |
volume | dynamic | — | volume value consumed by this operation. |
attenuation | dynamic | — | attenuation value consumed by this operation. |
timeOffset | dynamic | — | timeOffset value consumed by this operation. |
function entityFields(entity)Return the entity fields value.
| Parameter | Type | Default | Description |
|---|---|---|---|
entity | dynamic | — | entity value consumed by this operation. |
const MAX_PENDING_SOUND_EVENTS = 1024Defines the max pending sound events constant used by the miniquake2 server sound events module.
const MAX_SOUND_FRAGMENT_BYTES = 14Defines the max sound fragment bytes constant used by the miniquake2 server sound events module.
function numeric(value)Performs the numeric operation for the miniquake2 server sound events module.
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed or transformed by the operation. |
function packetize(fragments, maximumPayload)Performs the packetize operation for the miniquake2 server sound events module.
| Parameter | Type | Default | Description |
|---|---|---|---|
fragments | dynamic | — | fragments value consumed by this operation. |
maximumPayload | dynamic | — | maximumPayload value consumed by this operation. |
function pendingSnapshot(runtime)The live bridge owns one fixed-capacity array. Enqueue is O(1); a compact owned view is made only once at the server-frame dispatch boundary.
| Parameter | Type | Default | Description |
|---|---|---|---|
runtime | dynamic | — | runtime value consumed by this operation. |
function restorePending(runtime, events)Report whether restore pending.
| Parameter | Type | Default | Description |
|---|---|---|---|
runtime | dynamic | — | runtime value consumed by this operation. |
events | dynamic | — | events value consumed by this operation. |
function validateAll(events)Validate all.
| Parameter | Type | Default | Description |
|---|---|---|---|
events | dynamic | — | events value consumed by this operation. |
function validateFields(hasEntity, entityNumber, channel, channelFlags, soundIndex, volume, attenuation, timeOffset, position)Validate fields.
| Parameter | Type | Default | Description |
|---|---|---|---|
hasEntity | dynamic | — | hasEntity value consumed by this operation. |
entityNumber | dynamic | — | entityNumber value consumed by this operation. |
channel | dynamic | — | channel value consumed by this operation. |
channelFlags | dynamic | — | channelFlags value consumed by this operation. |
soundIndex | dynamic | — | Zero-based index of sound. |
volume | dynamic | — | volume value consumed by this operation. |
attenuation | dynamic | — | attenuation value consumed by this operation. |
timeOffset | dynamic | — | timeOffset value consumed by this operation. |
position | dynamic | — | position value consumed by this operation. |
function validUnit(value, minimum, maximum)Report whether valid unit.
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed or transformed by the operation. |
minimum | dynamic | — | minimum value consumed by this operation. |
maximum | dynamic | — | maximum value consumed by this operation. |