Unit CastleVorbisDecoder

DescriptionUsesClasses, Interfaces, Objects and RecordsFunctions and ProceduresTypesConstantsVariables

Description

OggVorbis decoder.

Uses

  • SysUtils
  • Classes
  • CastleOpenAL

Overview

Classes, Interfaces, Objects and Records

Name Description
Class EVorbisLoadError  
Class EVorbisFileError  

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.14.0.