LLVorbisDecodeState Class Reference

Inheritance diagram for LLVorbisDecodeState:

Inheritance graph
[legend]
Collaboration diagram for LLVorbisDecodeState:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLVorbisDecodeState (const LLUUID &uuid, const LLString &out_filename)
BOOL initDecode ()
BOOL decodeSection ()
BOOL finishDecode ()
void flushBadFile ()
void ioComplete (S32 bytes)
BOOL isValid () const
BOOL isDone () const
const LLUUIDgetUUID () const

Protected Member Functions

virtual ~LLVorbisDecodeState ()

Protected Attributes

BOOL mValid
BOOL mDone
LLAtomicS32 mBytesRead
LLUUID mUUID
std::vector< U8mWAVBuffer
LLString mOutFilename
LLLFSThread::handle_t mFileHandle
LLVFilemInFilep
OggVorbis_File mVF
S32 mCurrentSection

Classes

class  WriteResponder

Detailed Description

Definition at line 58 of file llaudiodecodemgr.cpp.


Constructor & Destructor Documentation

LLVorbisDecodeState::LLVorbisDecodeState ( const LLUUID uuid,
const LLString out_filename 
)

Definition at line 169 of file llaudiodecodemgr.cpp.

References FALSE, mBytesRead, mCurrentSection, mDone, mFileHandle, mInFilep, mOutFilename, mUUID, mValid, NULL, and LLQueuedThread::nullHandle().

LLVorbisDecodeState::~LLVorbisDecodeState (  )  [protected, virtual]

Definition at line 184 of file llaudiodecodemgr.cpp.

References mDone, mInFilep, and NULL.


Member Function Documentation

BOOL LLVorbisDecodeState::decodeSection (  ) 

Definition at line 315 of file llaudiodecodemgr.cpp.

References FALSE, llendl, llwarns, mCurrentSection, mDone, mInFilep, mValid, mVF, mWAVBuffer, and TRUE.

BOOL LLVorbisDecodeState::finishDecode (  ) 

Definition at line 361 of file llaudiodecodemgr.cpp.

References LLAssetType::AT_SOUND_WAV, FALSE, getUUID(), gVFS, i, isValid(), llendl, llfloor(), llmin(), llwarns, mBytesRead, mDone, mFileHandle, mOutFilename, mUUID, mValid, mVF, mWAVBuffer, LLQueuedThread::nullHandle(), S32, LLLFSThread::sLocal, TRUE, WAV_HEADER_SIZE, LLVFile::write(), and LLLFSThread::write().

void LLVorbisDecodeState::flushBadFile (  ) 

Definition at line 480 of file llaudiodecodemgr.cpp.

References llendl, llwarns, mInFilep, mUUID, and LLVFile::remove().

const LLUUID& LLVorbisDecodeState::getUUID (  )  const [inline]

Definition at line 84 of file llaudiodecodemgr.cpp.

References mUUID.

Referenced by finishDecode().

BOOL LLVorbisDecodeState::initDecode (  ) 

Definition at line 194 of file llaudiodecodemgr.cpp.

References LLAssetType::AT_SOUND, FALSE, LLVFile::getSize(), gVFS, llendl, llwarns, mInFilep, mUUID, mVF, mWAVBuffer, NULL, r, TRUE, vfs_close(), vfs_read(), vfs_seek(), vfs_tell(), and WAV_HEADER_SIZE.

void LLVorbisDecodeState::ioComplete ( S32  bytes  )  [inline]

Definition at line 81 of file llaudiodecodemgr.cpp.

References mBytesRead.

BOOL LLVorbisDecodeState::isDone (  )  const [inline]

Definition at line 83 of file llaudiodecodemgr.cpp.

References mDone.

BOOL LLVorbisDecodeState::isValid (  )  const [inline]

Definition at line 82 of file llaudiodecodemgr.cpp.

References mValid.

Referenced by finishDecode().


Member Data Documentation

LLAtomicS32 LLVorbisDecodeState::mBytesRead [protected]

Definition at line 91 of file llaudiodecodemgr.cpp.

Referenced by finishDecode(), ioComplete(), and LLVorbisDecodeState().

S32 LLVorbisDecodeState::mCurrentSection [protected]

Definition at line 102 of file llaudiodecodemgr.cpp.

Referenced by decodeSection(), and LLVorbisDecodeState().

BOOL LLVorbisDecodeState::mDone [protected]

Definition at line 90 of file llaudiodecodemgr.cpp.

Referenced by decodeSection(), finishDecode(), isDone(), LLVorbisDecodeState(), and ~LLVorbisDecodeState().

LLLFSThread::handle_t LLVorbisDecodeState::mFileHandle [protected]

Definition at line 97 of file llaudiodecodemgr.cpp.

Referenced by finishDecode(), and LLVorbisDecodeState().

LLVFile* LLVorbisDecodeState::mInFilep [protected]

Definition at line 100 of file llaudiodecodemgr.cpp.

Referenced by decodeSection(), flushBadFile(), initDecode(), LLVorbisDecodeState(), and ~LLVorbisDecodeState().

LLString LLVorbisDecodeState::mOutFilename [protected]

Definition at line 96 of file llaudiodecodemgr.cpp.

Referenced by finishDecode(), and LLVorbisDecodeState().

LLUUID LLVorbisDecodeState::mUUID [protected]

Definition at line 92 of file llaudiodecodemgr.cpp.

Referenced by finishDecode(), flushBadFile(), getUUID(), initDecode(), and LLVorbisDecodeState().

BOOL LLVorbisDecodeState::mValid [protected]

Definition at line 89 of file llaudiodecodemgr.cpp.

Referenced by decodeSection(), finishDecode(), isValid(), and LLVorbisDecodeState().

OggVorbis_File LLVorbisDecodeState::mVF [protected]

Definition at line 101 of file llaudiodecodemgr.cpp.

Referenced by decodeSection(), finishDecode(), and initDecode().

std::vector<U8> LLVorbisDecodeState::mWAVBuffer [protected]

Definition at line 94 of file llaudiodecodemgr.cpp.

Referenced by decodeSection(), finishDecode(), and initDecode().


The documentation for this class was generated from the following file:
Generated on Thu Jul 1 06:12:02 2010 for Second Life Viewer by  doxygen 1.4.7