Unit CastleSoundEngine

Description

Cross-platform, spatial sound playback engine (SoundEngine singleton).

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

Uses

Overview

Classes, Interfaces, Objects and Records

Name Description
Class TInternalSoundSourceList  
Class TCastleSound Sound that can be loaded from Url (possibly reusing a cache, possibly using streaming) and played.
Class TCastlePlayingSound Controls a sound playback.
Class TSoundAllocator Manager of allocated sounds.
Class TSoundEngine Sound engine, responsible for loading and playing sounds.
Class TRepoSoundEngine Sound engine that keeps a repository of sounds, defined in a nice XML file.
Class TLoopingChannel Looping sound management, to easily play music or other looping sounds.
Class ESoundBufferNotLoaded  
Class EInvalidSoundBufferFree  
Class EInvalidSoundRepositoryXml  

Functions and Procedures

function SoundEngine: TRepoSoundEngine;

Types

TSoundDistanceModel = CastleSoundBase.TSoundDistanceModel;
TSoundDevice = CastleSoundBase.TSoundDevice;
TSoundBuffer = TInternalSoundBuffer deprecated 'use TInternalSoundBuffer';
TInternalSoundSourceEvent = procedure (Sender: TInternalSoundSource) of object;
TSound = TInternalSoundSource deprecated 'play sounds using TCastleSoundSource + TCastleSound';
TSoundParameters = TPlaySoundParameters deprecated 'use TPlaySoundParameters';
TSoundType = TCastleSound deprecated 'use TCastleSound';
TMusicPlayer = TLoopingChannel deprecated 'use TLoopingChannel';
ENoMoreSources = CastleSoundBase.ENoMoreSources;
ENoMoreOpenALSources = ENoMoreSources deprecated 'use ENoMoreSources';
ESoundFileError = CastleSoundBase.ESoundFileError;

Constants

dmInverse = CastleSoundBase.dmInverse;
dmLinear = CastleSoundBase.dmLinear;
LoadSound_FileFilters = 'All Files|*|' + '*All Sound Files|*.wav;*.ogg|' + 'WAV (*.wav)|*.wav|' + 'OggVorbis (*.ogg)|*.ogg';

Variables

stPlayerInteractFailed:TCastleSound deprecated 'these predefined sounds should not be used';
stPlayerPickItem:TCastleSound deprecated 'these predefined sounds should not be used';
stPlayerDropItem:TCastleSound deprecated 'these predefined sounds should not be used';
stPlayerSwimming:TCastleSound deprecated 'these predefined sounds should not be used';
stPlayerDrowning:TCastleSound deprecated 'these predefined sounds should not be used';
stPlayerFootstepsDefault:TCastleSound deprecated 'these predefined sounds should not be used';
stPlayerToxicPain:TCastleSound deprecated 'these predefined sounds should not be used';
stPlayerSuddenPain:TCastleSound deprecated 'these predefined sounds should not be used';
stPlayerDies:TCastleSound deprecated 'these predefined sounds should not be used';
stPlayerSwimmingChange:TCastleSound deprecated 'these predefined sounds should not be used';
stMenuCurrentItemChanged:TCastleSound deprecated 'these predefined sounds should not be used';
stMenuClick:TCastleSound deprecated 'these predefined sounds should not be used';

Description

Functions and Procedures

function SoundEngine: TRepoSoundEngine;

The sound engine. Singleton instance of TRepoSoundEngine, the most capable engine class. Created on first call to this function.

Source: audio/castlesoundengine_miscellaneous.inc (line 78).

Types

TSoundDistanceModel = CastleSoundBase.TSoundDistanceModel;

This item has no description.

Source: audio/castlesoundengine_initial_types.inc (line 25).

TSoundDevice = CastleSoundBase.TSoundDevice;

This item has no description.

Source: audio/castlesoundengine_initial_types.inc (line 26).

TSoundBuffer = TInternalSoundBuffer deprecated 'use TInternalSoundBuffer';

Warning: this symbol is deprecated: use TInternalSoundBuffer

This item has no description.

Source: audio/castlesoundengine_internalsoundbuffer.inc (line 80).

TInternalSoundSourceEvent = procedure (Sender: TInternalSoundSource) of object;

type // allow type declaration to continue

TSound = TInternalSoundSource deprecated 'play sounds using TCastleSoundSource + TCastleSound';

Warning: this symbol is deprecated: play sounds using TCastleSoundSource + TCastleSound

This item has no description.

Source: audio/castlesoundengine_internalsoundsource.inc (line 189).

TSoundParameters = TPlaySoundParameters deprecated 'use TPlaySoundParameters';

Warning: this symbol is deprecated: use TPlaySoundParameters

This item has no description.

Source: audio/castlesoundengine_playsoundparameters.inc (line 61).

TSoundType = TCastleSound deprecated 'use TCastleSound';

Warning: this symbol is deprecated: use TCastleSound

Unique sound type identifier for sounds used within TRepoSoundEngine.

Source: audio/castlesoundengine_repoengine.inc (line 22).

TMusicPlayer = TLoopingChannel deprecated 'use TLoopingChannel';

Warning: this symbol is deprecated: use TLoopingChannel

This item has no description.

Source: audio/castlesoundengine_loopingchannel.inc (line 75).

ENoMoreSources = CastleSoundBase.ENoMoreSources;

Copyright 2010-2023 Michalis Kamburelis.

This file is part of "Castle Game Engine".

"Castle Game Engine" is free software; see the file COPYING.txt, included in this distribution, for details about the copyright.

"Castle Game Engine" is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

—————————————————————————-

Source: audio/castlesoundengine_miscellaneous.inc (line 20).

ENoMoreOpenALSources = ENoMoreSources deprecated 'use ENoMoreSources';

Warning: this symbol is deprecated: use ENoMoreSources

This item has no description.

Source: audio/castlesoundengine_miscellaneous.inc (line 21).

ESoundFileError = CastleSoundBase.ESoundFileError;

This item has no description.

Source: audio/castlesoundengine_miscellaneous.inc (line 24).

Constants

dmInverse = CastleSoundBase.dmInverse;

This item has no description.

Source: audio/castlesoundengine_miscellaneous.inc (line 64).

dmLinear = CastleSoundBase.dmLinear;

This item has no description.

Source: audio/castlesoundengine_miscellaneous.inc (line 65).

LoadSound_FileFilters = 'All Files|*|' + '*All Sound Files|*.wav;*.ogg|' + 'WAV (*.wav)|*.wav|' + 'OggVorbis (*.ogg)|*.ogg';

Supported sound file formats. Use these filters with LCL file dialog (easily set by FileFiltersToDialog) or TCastleWindow.FileDialog.

Source: audio/castlesoundengine_miscellaneous.inc (line 70).

Variables

stPlayerInteractFailed:TCastleSound deprecated 'these predefined sounds should not be used';

Warning: this symbol is deprecated: these predefined sounds should not be used

Player sounds.

Source: audio/castlesoundengine_miscellaneous.inc (line 59).

stPlayerPickItem:TCastleSound deprecated 'these predefined sounds should not be used';

Warning: this symbol is deprecated: these predefined sounds should not be used

Player sounds.

Source: audio/castlesoundengine_miscellaneous.inc (line 59).

stPlayerDropItem:TCastleSound deprecated 'these predefined sounds should not be used';

Warning: this symbol is deprecated: these predefined sounds should not be used

Player sounds.

Source: audio/castlesoundengine_miscellaneous.inc (line 59).

stPlayerSwimming:TCastleSound deprecated 'these predefined sounds should not be used';

Warning: this symbol is deprecated: these predefined sounds should not be used

Player sounds.

Source: audio/castlesoundengine_miscellaneous.inc (line 59).

stPlayerDrowning:TCastleSound deprecated 'these predefined sounds should not be used';

Warning: this symbol is deprecated: these predefined sounds should not be used

Player sounds.

Source: audio/castlesoundengine_miscellaneous.inc (line 59).

stPlayerFootstepsDefault:TCastleSound deprecated 'these predefined sounds should not be used';

Warning: this symbol is deprecated: these predefined sounds should not be used

Player sounds.

Source: audio/castlesoundengine_miscellaneous.inc (line 59).

stPlayerToxicPain:TCastleSound deprecated 'these predefined sounds should not be used';

Warning: this symbol is deprecated: these predefined sounds should not be used

Player sounds.

Source: audio/castlesoundengine_miscellaneous.inc (line 59).

stPlayerSuddenPain:TCastleSound deprecated 'these predefined sounds should not be used';

Warning: this symbol is deprecated: these predefined sounds should not be used

Player sounds.

Source: audio/castlesoundengine_miscellaneous.inc (line 59).

stPlayerDies:TCastleSound deprecated 'these predefined sounds should not be used';

Warning: this symbol is deprecated: these predefined sounds should not be used

Player sounds.

Source: audio/castlesoundengine_miscellaneous.inc (line 59).

stPlayerSwimmingChange:TCastleSound deprecated 'these predefined sounds should not be used';

Warning: this symbol is deprecated: these predefined sounds should not be used

Player sounds.

Source: audio/castlesoundengine_miscellaneous.inc (line 59).

stMenuCurrentItemChanged:TCastleSound deprecated 'these predefined sounds should not be used';

Warning: this symbol is deprecated: these predefined sounds should not be used

Sounds used by TCastleOnScreenMenu.

Source: audio/castlesoundengine_miscellaneous.inc (line 59).

stMenuClick:TCastleSound deprecated 'these predefined sounds should not be used';

Warning: this symbol is deprecated: these predefined sounds should not be used

Sounds used by TCastleOnScreenMenu.

Source: audio/castlesoundengine_miscellaneous.inc (line 59).


Generated by PasDoc 0.17.0.snapshot.