| Description | Hierarchy | Fields | Methods | Properties |
type TSoundFile = class(TObject)
![]() |
procedure CheckALExtension(const S: string); |
![]() |
constructor CreateFromStream(Stream: TStream); virtual; abstract; |
![]() |
class function CreateFromFile(const FileName: string): TSoundFile; |
![]() |
procedure PrepareOpenAL; virtual; |
![]() |
function Data: Pointer; virtual; abstract; |
![]() |
function DataSize: LongWord; virtual; abstract; |
![]() |
function DataFormat: TALuint; virtual; abstract; |
![]() |
function Frequency: LongWord; virtual; abstract; |
![]() |
procedure CheckALExtension(const S: string); |
![]() |
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
| |
![]() |
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; |