MiniQuake

src/miniquake/sound/snd_win.ml

Package
miniquake.sound.snd_win
Reachable
No

Imports

Declarations

completeHeaders

function completeHeaders(state, count)

Handle headers and update the associated state.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.sound.snd_win` state used by `completeHeaders`.
countdynamic—Number of entries or units to process.

View source

completeOneHeader

function completeOneHeader(state)

Handle one header and update the associated state.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.sound.snd_win` state used by `completeOneHeader`.

View source

copySubmission

function copySubmission(state, data, header)

Transfer data for copy submission.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.sound.snd_win` state used by `copySubmission`.
datadynamic—Input data consumed by the operation.
headerdynamic—The header input consumed by `copySubmission`.

View source

create

function create(simulated, sampleRate)

Implements the `create` operation for `miniquake.sound.snd_win` (create).

ParameterTypeDefaultDescription
simulateddynamic—The simulated input consumed by `create`.
sampleRatedynamic—The sample rate input consumed by `create`.

View source

createHeaders

function createHeaders()

Create and initialize headers.

View source

FreeSound

function FreeSound(state)

Release state for free sound.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.sound.snd_win` state used by `FreeSound`.

View source

hasArgument

function hasArgument(arguments, wanted)

Report whether argument.

ParameterTypeDefaultDescription
argumentsdynamic—Command-line arguments to inspect or execute.
wanteddynamic—The wanted input consumed by `hasArgument`.

View source

nextHeader

function nextHeader(state)

Return next header for the active module state.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.sound.snd_win` state used by `nextHeader`.

View source

prepareHeaders

function prepareHeaders(state)

Implements the `prepareHeaders` operation for `miniquake.sound.snd_win` (prepare headers).

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.sound.snd_win` state used by `prepareHeaders`.

View source

queuedHeaders

function queuedHeaders(state)

Add state for queued headers.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.sound.snd_win` state used by `queuedHeaders`.

View source

refreshNativeHeaders

function refreshNativeHeaders(state)

Implements the `refreshNativeHeaders` operation for `miniquake.sound.snd_win` (refresh native headers).

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.sound.snd_win` state used by `refreshNativeHeaders`.

View source

S_BlockSound

function S_BlockSound(state)

Apply the Quake-compatible s block sound behavior.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.sound.snd_win` state used by `S_BlockSound`.

View source

S_UnblockSound

function S_UnblockSound(state)

Apply the Quake-compatible s unblock sound behavior.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.sound.snd_win` state used by `S_UnblockSound`.

View source

SECONDARY_BUFFER_SIZE

const SECONDARY_BUFFER_SIZE = 65536

Defines the secondary buffer size value used by `miniquake.sound.snd_win`.

View source

SIS_FAILURE

const SIS_FAILURE = 1

Defines the sis failure value used by `miniquake.sound.snd_win`.

View source

SIS_NOTAVAIL

const SIS_NOTAVAIL = 2

Defines the sis notavail value used by `miniquake.sound.snd_win`.

View source

SIS_SUCCESS

const SIS_SUCCESS = 0

Defines the sis success value used by `miniquake.sound.snd_win`.

View source

SNDDMA_GetDMAPos

function SNDDMA_GetDMAPos(state)

Mirror Quake's SNDDMA_GetDMAPos routine and its observable state changes.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.sound.snd_win` state used by `SNDDMA_GetDMAPos`.

View source

SNDDMA_Init

function SNDDMA_Init(state, arguments)

Mirror Quake's SNDDMA_Init routine and its observable state changes.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.sound.snd_win` state used by `SNDDMA_Init`.
argumentsdynamic—Command-line arguments to inspect or execute.

View source

SNDDMA_InitDirect

function SNDDMA_InitDirect(state)

Mirror Quake's SNDDMA_InitDirect routine and its observable state changes.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.sound.snd_win` state used by `SNDDMA_InitDirect`.

View source

SNDDMA_InitWav

function SNDDMA_InitWav(state)

Mirror Quake's SNDDMA_InitWav routine and its observable state changes.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.sound.snd_win` state used by `SNDDMA_InitWav`.

View source

SNDDMA_Shutdown

function SNDDMA_Shutdown(state)

Mirror Quake's SNDDMA_Shutdown routine and its observable state changes.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.sound.snd_win` state used by `SNDDMA_Shutdown`.

View source

SNDDMA_Submit

function SNDDMA_Submit(state, data)

Mirror Quake's SNDDMA_Submit routine and its observable state changes.

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.sound.snd_win` state used by `SNDDMA_Submit`.
datadynamic—Input data consumed by the operation.

View source

unprepareHeaders

function unprepareHeaders(state)

Implements the `unprepareHeaders` operation for `miniquake.sound.snd_win` (unprepare headers).

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.sound.snd_win` state used by `unprepareHeaders`.

View source

WAV_BUFFER_SIZE

const WAV_BUFFER_SIZE = 1024

Defines the wav buffer size value used by `miniquake.sound.snd_win`.

View source

WAV_BUFFERS

const WAV_BUFFERS = 64

Defines the wav buffers value used by `miniquake.sound.snd_win`.

View source

WAV_MASK

const WAV_MASK = 63

Defines the wav mask value used by `miniquake.sound.snd_win`.

View source

miniquake.sound.snd_win.WaveHeader struct

miniquake.sound.snd_win.WindowsSoundState struct