Unit CastleSoundBase

Description

Sound engine basic types.

Source: audio/castlesoundbase.pas (line 17).

Uses

  • SysUtils
  • Generics.Collections

Overview

Classes, Interfaces, Objects and Records

Name Description
Class ENoMoreSources  
Class ESoundFileError  
Class TSoundDevice  
Class TSoundDeviceList  

Types

TSoundDistanceModel = (...);
TSoundLoading = (...);
TSoundFrequency = Single;

Description

Types

TSoundDistanceModel = (...);

How does distance affect spatial sounds, used for TSoundEngine.DistanceModel.

Values

Source: audio/castlesoundbase.pas (line 30).

TSoundLoading = (...);

How to load a sound buffer.

Values
  • slComplete: Load entire sound file at once. The advantage is that once the sound buffer is loaded, there's zero overhead at runtime for playing it, and loading the sound buffer multiple times uses the cache properly. The disadvantage is that loading time may be long, for longer files.
  • slStreaming: Decompress the sound (like OggVorbis) during playback. It allows for much quicker sound loading (almost instant, if you use streaming for everything) but means that sounds will be loaded (in parts) during playback. In general case, we advise to use it for longer sounds (like music tracks).

Source: audio/castlesoundbase.pas (line 75).

TSoundFrequency = Single;

Frequency (sample rate) of the loaded sound file. This is a floating point type, because some sound backends (like FMOD or WebAudio) allow for non-integer frequencies. Used for TCastleSound.Frequency.

Source: audio/castlesoundbase.pas (line 94).


Generated by PasDoc 0.17.0.snapshot.