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 LLUUID & | getUUID () const |
Protected Member Functions | |
virtual | ~LLVorbisDecodeState () |
Protected Attributes | |
BOOL | mValid |
BOOL | mDone |
LLAtomicS32 | mBytesRead |
LLUUID | mUUID |
std::vector< U8 > | mWAVBuffer |
LLString | mOutFilename |
LLLFSThread::handle_t | mFileHandle |
LLVFile * | mInFilep |
OggVorbis_File | mVF |
S32 | mCurrentSection |
Classes | |
class | WriteResponder |
Definition at line 58 of file llaudiodecodemgr.cpp.
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] |
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] |
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.
BOOL LLVorbisDecodeState::isDone | ( | ) | const [inline] |
BOOL LLVorbisDecodeState::isValid | ( | ) | const [inline] |
Definition at line 82 of file llaudiodecodemgr.cpp.
References mValid.
Referenced by finishDecode().
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().
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().