MiniQuake

src/miniquake/sound/cd_audio.ml

Package
miniquake.sound.cd_audio
Reachable
Yes

Imports

Declarations

CD_f

function CD_f(state, arguments)

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

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

View source

CDAudio_CloseDoor

function CDAudio_CloseDoor(state)

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

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.sound.cd_audio` state used by `CDAudio_CloseDoor`.

View source

CDAudio_Eject

function CDAudio_Eject(state)

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

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.sound.cd_audio` state used by `CDAudio_Eject`.

View source

CDAudio_GetAudioDiskInfo

function CDAudio_GetAudioDiskInfo(state)

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

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.sound.cd_audio` state used by `CDAudio_GetAudioDiskInfo`.

View source

CDAudio_Init

function CDAudio_Init(state)

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

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.sound.cd_audio` state used by `CDAudio_Init`.

View source

CDAudio_MessageHandler

function CDAudio_MessageHandler(state, notification, deviceMatches)

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

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.sound.cd_audio` state used by `CDAudio_MessageHandler`.
notificationdynamic—The notification input consumed by `CDAudio_MessageHandler`.
deviceMatchesdynamic—The device matches input consumed by `CDAudio_MessageHandler`.

View source

CDAudio_Pause

function CDAudio_Pause(state)

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

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.sound.cd_audio` state used by `CDAudio_Pause`.

View source

CDAudio_Play

function CDAudio_Play(state, requestedTrack, looping)

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

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.sound.cd_audio` state used by `CDAudio_Play`.
requestedTrackdynamic—The requested track input consumed by `CDAudio_Play`.
loopingdynamic—The looping input consumed by `CDAudio_Play`.

View source

CDAudio_Resume

function CDAudio_Resume(state)

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

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.sound.cd_audio` state used by `CDAudio_Resume`.

View source

CDAudio_Shutdown

function CDAudio_Shutdown(state)

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

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.sound.cd_audio` state used by `CDAudio_Shutdown`.

View source

CDAudio_Stop

function CDAudio_Stop(state)

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

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.sound.cd_audio` state used by `CDAudio_Stop`.

View source

CDAudio_Update

function CDAudio_Update(state, requestedVolume)

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

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.sound.cd_audio` state used by `CDAudio_Update`.
requestedVolumedynamic—The requested volume input consumed by `CDAudio_Update`.

View source

miniquake.sound.cd_audio.CdAudioState struct

create

function create(mixerState, maxTrack)

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

ParameterTypeDefaultDescription
mixerStatedynamic—Mutable state used by `create`.
maxTrackdynamic—The max track input consumed by `create`.

View source

defaultState

defaultState

Tracks the default module-level CD-audio state owned by `miniquake.sound.cd_audio`.

View source

ensure

function ensure(mixerState)

Ensure sufficient storage or state for the requested value.

ParameterTypeDefaultDescription
mixerStatedynamic—Mutable state used by `ensure`.

View source

identityRemap

function identityRemap()

Implements the `identityRemap` operation for `miniquake.sound.cd_audio` (identity remap).

View source

infoText

function infoText(state)

Implements the `infoText` operation for `miniquake.sound.cd_audio` (info text).

ParameterTypeDefaultDescription
statedynamic—Mutable `miniquake.sound.cd_audio` state used by `infoText`.

View source

MCI_NOTIFY_ABORTED

const MCI_NOTIFY_ABORTED = 4

Defines the mci notify aborted value used by `miniquake.sound.cd_audio`.

View source

MCI_NOTIFY_FAILURE

const MCI_NOTIFY_FAILURE = 8

Defines the mci notify failure value used by `miniquake.sound.cd_audio`.

View source

MCI_NOTIFY_SUCCESSFUL

const MCI_NOTIFY_SUCCESSFUL = 1

--------------------------------------------------------------------------- WinQuake cd_win.c source-surface technical equivalents.

Physical MCI tray and media-notification operations do not exist in the

modern OGG backend. These adapters preserve all game-observable state

transitions and the original public names while documenting the mechanical

drive operation as a technical equivalent.

---------------------------------------------------------------------------

View source

MCI_NOTIFY_SUPERSEDED

const MCI_NOTIFY_SUPERSEDED = 2

Defines the mci notify superseded value used by `miniquake.sound.cd_audio`.

View source

release

function release(mixerState)

Release or remove state for the requested value.

ParameterTypeDefaultDescription
mixerStatedynamic—Mutable state used by `release`.

View source

remapCommand

function remapCommand(state, arguments)

Implements the `remapCommand` operation for `miniquake.sound.cd_audio` (remap command).

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

View source