llaudiodecodemgr.cpp File Reference

#include "linden_common.h"
#include "llaudiodecodemgr.h"
#include "vorbisdecode.h"
#include "audioengine.h"
#include "lllfsthread.h"
#include "llvfile.h"
#include "llstring.h"
#include "lldir.h"
#include "llendianswizzle.h"
#include "llassetstorage.h"
#include "vorbis/codec.h"
#include "vorbis/vorbisfile.h"

Include dependency graph for llaudiodecodemgr.cpp:

Go to the source code of this file.

Classes

class  LLVorbisDecodeState
class  LLVorbisDecodeState::WriteResponder
class  LLAudioDecodeMgr::Impl

Functions

size_t vfs_read (void *ptr, size_t size, size_t nmemb, void *datasource)
int vfs_seek (void *datasource, ogg_int64_t offset, int whence)
int vfs_close (void *datasource)
long vfs_tell (void *datasource)

Variables

LLAudioEnginegAudiop
LLAudioDecodeMgrgAudioDecodeMgrp = NULL
static const S32 WAV_HEADER_SIZE = 44


Detailed Description

LicenseInfo
firstyear=2003&license=viewergpl

Copyright (c) 2003-2007, Linden Research, Inc.

Second Life Viewer Source Code The source code in this file ("Source Code") is provided by Linden Lab to you under the terms of the GNU General Public License, version 2.0 ("GPL"), unless you have obtained a separate licensing agreement ("Other License"), formally executed by you and Linden Lab. Terms of the GPL can be found in doc/GPL-license.txt in this distribution, or online at http://secondlife.com/developers/opensource/gplv2

There are special exceptions to the terms and conditions of the GPL as it is applied to this Source Code. View the full text of the exception in the file doc/FLOSS-exception.txt in this software distribution, or online at http://secondlife.com/developers/opensource/flossexception

By copying, modifying or distributing this software, you acknowledge that you have read and understood your obligations described above, and agree to abide by those obligations.

ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, COMPLETENESS OR PERFORMANCE. $/LicenseInfo$

Definition in file llaudiodecodemgr.cpp.


Function Documentation

int vfs_close ( void datasource  ) 

Definition at line 156 of file llaudiodecodemgr.cpp.

Referenced by LLVorbisDecodeState::initDecode().

size_t vfs_read ( void ptr,
size_t  size,
size_t  nmemb,
void datasource 
)

Definition at line 105 of file llaudiodecodemgr.cpp.

References LLVFile::getLastBytesRead(), LLVFile::read(), and S32.

Referenced by LLVorbisDecodeState::initDecode().

int vfs_seek ( void datasource,
ogg_int64_t  offset,
int  whence 
)

Definition at line 120 of file llaudiodecodemgr.cpp.

References LLVFile::getSize(), llendl, llerrs, S32, S32_MAX, and LLVFile::seek().

Referenced by LLVorbisDecodeState::initDecode().

long vfs_tell ( void datasource  ) 

Definition at line 163 of file llaudiodecodemgr.cpp.

References LLVFile::tell().

Referenced by LLVorbisDecodeState::initDecode().


Variable Documentation

LLAudioDecodeMgr* gAudioDecodeMgrp = NULL

Definition at line 50 of file llaudiodecodemgr.cpp.

Referenced by LLAudioEngine::assetCallback(), LLAudioEngine::idle(), LLAudioEngine::init(), LLAudioEngine::preloadSound(), LLAudioEngine::shutdown(), and LLAudioEngine::updateBufferForData().

LLAudioEngine* gAudiop

Definition at line 50 of file audioengine.cpp.

const S32 WAV_HEADER_SIZE = 44 [static]

Definition at line 52 of file llaudiodecodemgr.cpp.

Referenced by LLVorbisDecodeState::finishDecode(), and LLVorbisDecodeState::initDecode().


Generated on Thu Jul 1 06:10:06 2010 for Second Life Viewer by  doxygen 1.4.7