Castle Game EngineIntroduction Units Class Hierarchy Classes, Interfaces, Objects and Records Types Variables Constants Functions and Procedures Identifiers |
Unit CastleVorbisDecoder
Description
OggVorbis decoder.
Uses
- SysUtils
- Classes
- CastleOpenAL
Overview
Classes, Interfaces, Objects and Records
Functions and Procedures
function VorbisDecode(Stream: TStream; out DataFormat: TALuint; out Frequency: LongWord): TMemoryStream; |
Description
Functions and Procedures
function VorbisDecode(Stream: TStream; out DataFormat: TALuint; out Frequency: LongWord): TMemoryStream; |
OggVorbis decoder using vorbisfile library and working on ObjectPascal TStream objects.
This checks VorbisFileInited at the beginning, so you don't have to worry about it.
Note: this only uses some constants from OpenAL unit. It doesn't actually require OpenAL library to be available and initialized.
Exceptions raised
EReadError
- If Stream cannot be read (e.g. ended prematurely.)
- EVorbisLoadError
- If decoding OggVorbis stream failed.
|
Generated by PasDoc 0.13.0 on 2014-08-30 12:10:43
|