Files
src/miniquake/sound/snd_mem.ml
- Package
miniquake.sound.snd_mem- Reachable
- Yes
Imports
Declarations
miniquake.sound.snd_mem.ChunkCursor struct
# chunkNameAt
function chunkNameAt(cursor, offset)
Implements the `chunkNameAt` operation for `miniquake.sound.snd_mem` (chunk name at).
| Parameter | Type | Default | Description |
|---|
cursor | dynamic | — | The cursor input consumed by `chunkNameAt`. |
offset | dynamic | — | Zero-based offset of the requested data. |
View source
# createCursor
function createCursor(data, length)
Create and initialize cursor.
| Parameter | Type | Default | Description |
|---|
data | dynamic | — | Input data consumed by the operation. |
length | dynamic | — | Length of the requested data in units appropriate to the operation. |
View source
# createDescriptor
function createDescriptor(name)
Create and initialize descriptor.
| Parameter | Type | Default | Description |
|---|
name | dynamic | — | Stable name that identifies the requested object or option. |
View source
# DumpChunks
function DumpChunks(cursor)
Implements the `DumpChunks` operation for `miniquake.sound.snd_mem` (dump chunks).
| Parameter | Type | Default | Description |
|---|
cursor | dynamic | — | The cursor input consumed by `DumpChunks`. |
View source
# emptyWaveInfo
function emptyWaveInfo()
Implements the `emptyWaveInfo` operation for `miniquake.sound.snd_mem` (empty wave info).
View source
# FindChunk
function FindChunk(cursor, name)
Return chunk.
| Parameter | Type | Default | Description |
|---|
cursor | dynamic | — | The cursor input consumed by `FindChunk`. |
name | dynamic | — | Stable name that identifies the requested object or option. |
View source
# FindNextChunk
function FindNextChunk(cursor, name)
Return next chunk.
| Parameter | Type | Default | Description |
|---|
cursor | dynamic | — | The cursor input consumed by `FindNextChunk`. |
name | dynamic | — | Stable name that identifies the requested object or option. |
View source
# GetLittleLong
function GetLittleLong(cursor)
Return little long.
| Parameter | Type | Default | Description |
|---|
cursor | dynamic | — | The cursor input consumed by `GetLittleLong`. |
View source
# GetLittleShort
function GetLittleShort(cursor)
Return little short.
| Parameter | Type | Default | Description |
|---|
cursor | dynamic | — | The cursor input consumed by `GetLittleShort`. |
View source
# GetWavinfo
function GetWavinfo(name, wav, wavLength)
Return wavinfo.
| Parameter | Type | Default | Description |
|---|
name | dynamic | — | Stable name that identifies the requested object or option. |
wav | dynamic | — | The wav input consumed by `GetWavinfo`. |
wavLength | dynamic | — | Length of the requested data in units appropriate to the operation. |
View source
# ResampleSfx
function ResampleSfx(cache, inRate, inWidth, source, targetRate, loadAs8Bit)
Implements the `ResampleSfx` operation for `miniquake.sound.snd_mem` (resample sfx).
| Parameter | Type | Default | Description |
|---|
cache | dynamic | — | The cache input consumed by `ResampleSfx`. |
inRate | dynamic | — | The in rate input consumed by `ResampleSfx`. |
inWidth | dynamic | — | The in width input consumed by `ResampleSfx`. |
source | dynamic | — | Source value or collection to read. |
targetRate | dynamic | — | The target rate input consumed by `ResampleSfx`. |
loadAs8Bit | dynamic | — | The load as8 bit input consumed by `ResampleSfx`. |
View source
# S_Alloc
function S_Alloc(size)
Apply the Quake-compatible s alloc behavior.
| Parameter | Type | Default | Description |
|---|
size | dynamic | — | Size of the requested data or resource. |
View source
# S_LoadSound
function S_LoadSound(filesystem, descriptor, targetRate, loadAs8Bit)
Apply the Quake-compatible s load sound behavior.
| Parameter | Type | Default | Description |
|---|
filesystem | dynamic | — | The filesystem input consumed by `S_LoadSound`. |
descriptor | dynamic | — | The descriptor input consumed by `S_LoadSound`. |
targetRate | dynamic | — | The target rate input consumed by `S_LoadSound`. |
loadAs8Bit | dynamic | — | The load as8 bit input consumed by `S_LoadSound`. |
View source
# S_LoadSoundData
function S_LoadSoundData(name, data, targetRate, loadAs8Bit)
Apply the Quake-compatible s load sound data behavior.
| Parameter | Type | Default | Description |
|---|
name | dynamic | — | Stable name that identifies the requested object or option. |
data | dynamic | — | Input data consumed by the operation. |
targetRate | dynamic | — | The target rate input consumed by `S_LoadSoundData`. |
loadAs8Bit | dynamic | — | The load as8 bit input consumed by `S_LoadSoundData`. |
View source
miniquake.sound.snd_mem.SoundCache struct
miniquake.sound.snd_mem.SoundDescriptor struct
# soundF32
function soundF32(value)
Implements the `soundF32` operation for `miniquake.sound.snd_mem` (sound f32).
| Parameter | Type | Default | Description |
|---|
value | dynamic | — | Value consumed by `soundF32`. |
View source
# soundPath
function soundPath(name)
Return sound path derived from the active module state.
| Parameter | Type | Default | Description |
|---|
name | dynamic | — | Stable name that identifies the requested object or option. |
View source
# toSoundEffect
function toSoundEffect(descriptor)
Implements the `toSoundEffect` operation for `miniquake.sound.snd_mem` (to sound effect).
| Parameter | Type | Default | Description |
|---|
descriptor | dynamic | — | The descriptor input consumed by `toSoundEffect`. |
View source