Skip to content

SpeedOfSound

Narta Xaymar Dirks edited this page Nov 26, 2026 · 1 revision

SpeedOfSound BlitzLLVM

SpeedOfSound:Void meters:Float32, fade_ms:Int32=0
Parameter Mode Type Default Description
meters In Float32 required Meters per second, 340 (the speed in air) until it is changed. It has to be above 0, anything else is a runtime error.
fade_ms In Int32 0 How many milliseconds it takes to get to the new value. 0 (the default) changes it at once. Below 0 is a runtime error.

Description

BlitzLLVM This command does not exist in the original Blitz products. BlitzLLVM adds it.

Changes how fast sound travels for the doppler shift, in meters per second. This is a BlitzLLVM extension.

Differences

Examples

; Under water, sound is more than four times as fast as in air.
SpeedOfSound 1480, 500

Related Commands

EmitSound Blitz3D, GetSpeedOfSound BlitzLLVM, SetChannelFalloff BlitzLLVM, SetFalloff BlitzLLVM

Home · Command Index


Getting started

Language

Tools


Language Features
BlitzBasic
Blitz3D
BlitzPlus
Differences

More

Clone this wiki locally