Logo Mibo

Voice Type

Per-play knobs for a sound effect: volume, pan, and pitch.

A struct passed by copy — building one and passing it to IAudio.Play does not allocate. Start from Voice.center and change fields with a record update.

Example

 let voice = { Voice.center with Volume = 0.7f; Pan = -0.5f }
val voice: obj

Record fields

Record Field Description

Pan

Full Usage: Pan

Field type: float32

Stereo pan. -1.0 = fully left, 0.0 = center, 1.0 = fully right. Values outside -1.0..1.0 clamp at the service entry.

Field type: float32

Pitch

Full Usage: Pitch

Field type: float32

Playback pitch as a speed multiplier: 1.0 = normal, 0.5 = half speed, 2.0 = double speed. This is the raylib convention, translated per backend (MonoGame stores pitches as octave offsets from normal). Values outside 0.5..2.0 (one octave down or up) clamp at the service entry — the range every backend expresses.

Field type: float32

Volume

Full Usage: Volume

Field type: float32

Playback volume. 1.0 = full volume, 0.0 = silent. Values outside 0.0..1.0 clamp at the service entry.

Field type: float32

Type something to start searching.