Class TSoundBuffer
Unit
Declaration
type TSoundBuffer = class(TObject)
Description
Sound buffer represents contents of a sound file, like Wav or OggVorbis, that (may be) played.
It can be only allocated by TSoundEngine.LoadBuffer and freed by TSoundEngine.FreeBuffer. Do not create or free TSoundBuffer instances yourself.
Hierarchy
- TObject
- TSoundBuffer
Overview
Methods
![]() |
constructor Create(const SoundEngineBackend: TSoundEngineBackend; const SoundLoading: TSoundLoading); |
![]() |
destructor Destroy; override; |
![]() |
function Duration: TFloatTime; |
![]() |
function DataFormat: TSoundDataFormat; |
![]() |
function Frequency: LongWord; |
Properties
![]() |
property URL: string read FURL; |
Description
Methods
![]() |
constructor Create(const SoundEngineBackend: TSoundEngineBackend; const SoundLoading: TSoundLoading); |
![]() |
destructor Destroy; override; |
![]() |
function Duration: TFloatTime; |
|
Duration of the sound, in seconds. -1 if not loaded yet. | |
![]() |
function DataFormat: TSoundDataFormat; |
|
Data format (bits per sample, stereo or mono) of the loaded sound file. Typical applications don't need this value, this is just an information about the loaded sound file. Undefined if backend is not loaded. | |
Properties
![]() |
property URL: string read FURL; |
|
Absolute sound file | |
Generated by PasDoc 0.16.0.
