# audioChunk
function audioChunk(header, data)Return the audio chunk value.
| Parameter | Type | Default | Description |
|---|---|---|---|
header | dynamic | — | header value consumed by this operation. |
data | dynamic | — | Input data consumed by the operation. |
src/miniquake2/client/cinematic/player.mlProvides miniquake2 client cinematic player facilities for this project.
miniquake2/client/cinematic/audio.ml as cinaudio → src/miniquake2/client/cinematic/audio.mlminiquake2/client/cinematic/types.ml as cintypes → src/miniquake2/client/cinematic/types.mlminiquake2/format/cinematic.ml as cinformat → src/miniquake2/format/cinematic.mlfunction audioChunk(header, data)Return the audio chunk value.
| Parameter | Type | Default | Description |
|---|---|---|---|
header | dynamic | — | header value consumed by this operation. |
data | dynamic | — | Input data consumed by the operation. |
function draw(playback, screenWidth, screenHeight, exports)Draws draw through the miniquake2 client cinematic player rendering path.
| Parameter | Type | Default | Description |
|---|---|---|---|
playback | dynamic | — | playback value consumed by this operation. |
screenWidth | dynamic | — | screenWidth value consumed by this operation. |
screenHeight | dynamic | — | screenHeight value consumed by this operation. |
exports | dynamic | — | exports value consumed by this operation. |
function emitAudio(playback, data)Emit audio.
| Parameter | Type | Default | Description |
|---|---|---|---|
playback | dynamic | — | playback value consumed by this operation. |
data | dynamic | — | Input data consumed by the operation. |
function isFinished(playback)Report whether is finished.
| Parameter | Type | Default | Description |
|---|---|---|---|
playback | dynamic | — | playback value consumed by this operation. |
function pause(playback, now)Pause state.
| Parameter | Type | Default | Description |
|---|---|---|---|
playback | dynamic | — | playback value consumed by this operation. |
now | dynamic | — | now value consumed by this operation. |
function readNext(playback, frameNumber)Read next.
| Parameter | Type | Default | Description |
|---|---|---|---|
playback | dynamic | — | playback value consumed by this operation. |
frameNumber | dynamic | — | frameNumber value consumed by this operation. |
function restartLoop(playback, now)Restart loop.
| Parameter | Type | Default | Description |
|---|---|---|---|
playback | dynamic | — | playback value consumed by this operation. |
now | dynamic | — | now value consumed by this operation. |
function resume(playback, now)Resume state.
| Parameter | Type | Default | Description |
|---|---|---|---|
playback | dynamic | — | playback value consumed by this operation. |
now | dynamic | — | now value consumed by this operation. |
function start(data, now, looping, audioCallbacks)Starts start for the miniquake2 client cinematic player workflow.
| Parameter | Type | Default | Description |
|---|---|---|---|
data | dynamic | — | Input data consumed by the operation. |
now | dynamic | — | now value consumed by this operation. |
looping | dynamic | — | looping value consumed by this operation. |
audioCallbacks | dynamic | — | audioCallbacks value consumed by this operation. |
function stop(playback)Stops stop for the miniquake2 client cinematic player workflow.
| Parameter | Type | Default | Description |
|---|---|---|---|
playback | dynamic | — | playback value consumed by this operation. |
function update(playback, now)Update state.
| Parameter | Type | Default | Description |
|---|---|---|---|
playback | dynamic | — | playback value consumed by this operation. |
now | dynamic | — | now value consumed by this operation. |