Class TPHXAudioSamples

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TPHXAudioSamples = class(TObject)

Description

List of audio samples

Hierarchy

  • TObject
  • TPHXAudioSamples

Overview

Methods

Public constructor Create(AEngine: TPHXAudioEngine);
Public destructor Destroy; override;
Public procedure Clear;
Public function LoadSample(const FileName: String): TPHXAudioSample; overload;
Public function LoadSample(Stream: TStream; const Name: String): TPHXAudioSample; overload;
Public function Find(const Name: String): TPHXAudioSample; overload;
Public function Find(const Name: String; out Sample: TPHXAudioSample): Boolean; overload;

Properties

Public property Engine: TPHXAudioEngine read FEngine;
Public property Count: Integer read GetCount;
Public property List: PAudioSampleList read GetList;
Public property Items[Index:Integer]: TPHXAudioSample read GetItem;

Description

Methods

Public constructor Create(AEngine: TPHXAudioEngine);

Create the audio sample list

Public destructor Destroy; override;

Free the list

Public procedure Clear;

Remove and free all sounds

Public function LoadSample(const FileName: String): TPHXAudioSample; overload;

Load the audio sample from a file

Public function LoadSample(Stream: TStream; const Name: String): TPHXAudioSample; overload;

Load the audio sample from a steam

Public function Find(const Name: String): TPHXAudioSample; overload;

Find a sample by name

Public function Find(const Name: String; out Sample: TPHXAudioSample): Boolean; overload;

Find a sample by name

Properties

Public property Engine: TPHXAudioEngine read FEngine;

The owning audio engine

Public property Count: Integer read GetCount;

Number of loaded sounds

Public property List: PAudioSampleList read GetList;

Return a pointer to the internal list

Public property Items[Index:Integer]: TPHXAudioSample read GetItem;

The sounds in the list


Generated by PasDoc 0.13.0 on 2013-08-26 11:02:34