Class TSoundFile
Unit
CastleSoundFile
Declaration
type TSoundFile = class(TObject)
Description
Hierarchy
Overview
Methods
Description
Methods
 |
constructor CreateFromStream(Stream: TStream); virtual; abstract; |
This will load a sound from a stream.
|
 |
class function CreateFromFile(const FileName: string): TSoundFile; |
This will load a file, given a filename. This just opens the file as TFileStream and then calls CreateFromStream of appropriate class, so see CreateFromStream for more info. For now, file format (which TSoundFile to use) is decided by the FileName extension.
|
 |
procedure PrepareOpenAL; virtual; |
Call this on this sound always after OpenAL is initialized and before passing this sound data to OpenAL. This may fix or check some things for this sound, checking e.g. whether some OpenAL extensions are supported.
Exceptions raised
- ESoundFormatNotSupportedByOpenAL
- if some OpenAL extension required to support this format is not present.
|
 |
function Data: Pointer; virtual; abstract; |
Sound data, according to DataFormat. Contents of Data are readonly.
|
 |
function DataSize: LongWord; virtual; abstract; |
Bytes allocated for Data.
|
 |
function DataFormat: TALuint; virtual; abstract; |
Data format, as understood by OpenAL.
|
 |
function Frequency: LongWord; virtual; abstract; |
|
Generated by PasDoc 0.12.1 on 2013-02-04 20:26:52
|